0 Members and 3 Guests are viewing this topic.
; Load the name into OP1 ld hl,$09AA ; internally, Str0 is represented as 0xAA09 ld (OP1+1),hl; Check if it exists and delete if necessary rst rFindSym jr c,make_str0 bcall(_DelvarArc)make_str0:; Now create Str0 with size 1. Put the name in OP1 first ld hl,$09AA ld (OP1+1),hl; Size is 1 byte ld hl,1 bcall(_CreateStrng);Pointer to size bytes is in DE. Switch to HL ex de,hl; Don't need the size, so skip those two bytes and get to the start of the data inc hl Inc hl; Now write the token ld (hl),tA ; if using ti83plus.inc. same as $41 or in this specific case, 'A';Done! ret
bcall(_RclAns) bcall(_ConvOP1) push af; Load the name into OP1 ld hl,$09AA ; internally, Str0 is represented as 0xAA09 ld (OP1+1),hl; Check if it exists and delete if necessary rst rFindSym jr c,make_str0 bcall(_DelvarArc)make_str0:; Now create Str0 with size 1. Put the name in OP1 first ld hl,$09AA ld (OP1+1),hl; Size is 1 byte ld hl,1 bcall(_CreateStrng);Pointer to size bytes is in DE. Switch to HL ex de,hl; Don't need the size, so skip those two bytes and get to the start of the data inc hl Inc hl; Now write the token pop af ; if using ti83plus.inc. same as $41 or in this specific case, 'A' ld (hl),a;Done! ret
I don't know what you mean on where to put the extra or replaced instructions, I tried thisCode: [Select] bcall(_RclAns) bcall(_ConvOP1) push af; Load the name into OP1 ld hl,$09AA ; internally, Str0 is represented as 0xAA09 ld (OP1+1),hl; Check if it exists and delete if necessary rst rFindSym jr c,make_str0 bcall(_DelvarArc)make_str0:; Now create Str0 with size 1. Put the name in OP1 first ld hl,$09AA ld (OP1+1),hl; Size is 1 byte ld hl,1 bcall(_CreateStrng);Pointer to size bytes is in DE. Switch to HL ex de,hl; Don't need the size, so skip those two bytes and get to the start of the data inc hl Inc hl; Now write the token pop af ; if using ti83plus.inc. same as $41 or in this specific case, 'A' ld (hl),a;Done! retBut it didn't store anything into Str0, infact it did nothing, I feel ripped off, could you send me the code itself instead of telling to "put instructions in certain locations"?Also, I don't mean to be rude.