0 Members and 3 Guests are viewing this topic.
If A=5 →B .Do stuffElse .Do stuffEnd
p_DispHex: ld b,4__DispHexLoop: xor a add hl,hl rla add hl,hl rla add hl,hl rla add hl,hl rla add a,$90 daa adc a,$40 daa B_CALL(_PutC) djnz __DispHexLoop ret
:A+1->A:If A=10:->A:End
p_DispHex: ld b,4__DispHexLoop: ld a,$1F__DispHexShiftLoop: add hl,hl rla jr nc,__DispHexShiftLoop daa add a,$A0 adc a,$40 B_CALL(_PutC) djnz __DispHexLoop ret
p_ConvHex: ld de,vx_Hex push de ld b,4__ConvHexLoop: ld a,$1F__ConvHexShiftLoop: add hl,hl rla jr nc,__ConvHexShiftLoop daa add a,$A0 adc a,$40 ld (de),a inc de djnz __ConvHexLoop xor a ld (de),a pop hl ret
HoMM: [==--------] Project 'resumed': I'm suffering overwhelming new ideas being popped up in my dreams :PtiDE: [----------] Explored and understood the main part of the code: just started writing a Tokenizer.
Disp "Hello". THIS IS A COMMENTDisp "This is not a com.". THIS IS A NEW COMMENT
...This is a commentThis is also a commentThis is the third line of the commentAnd this is the last line of a multi-line comment...Disp "This is not a com."
Instead of ..., why not have it have an opening and closing comment character. That way, you don't get confused too.
/.comment./how about that?edit: nevermind that's not really accessible on calc..