0 Members and 1 Guest are viewing this topic.
.db $BB,$6D di xor a out (1),a ld bc,0wait_key_released in a,(1) inc a jp nz,wait_key_released ret
0 = keypress not detected1 = keypress detectedWTF = RAM clear when key releasedLD BC,X RESULT$0000 1$0001 0$0002 1$0010 1$0011 0$0012 1$00F0 1$00F1 WTF$00F2 0$00FF 0
$0000 1 nop \ nop$0001 0 ld bc,xx00h (DB00 in your case)$0002 1 ld a,(bc) \ nop$0010 1 djnz $+0$0011 0 ld de,xx00h$0012 1 ld (de),a \ nop$00F0 1 ret p \ nop$00F1 WTF pop af \ nope (oof!)$00F2 0 jp p,xx00$00FF 0 rst 38h \ nop
Sweet baby carrots :0Maybe the actual circuits bare degraded causing bits to linger on the bus or something? Other idea: it looks like the code might be missing the 01 in the "ld bc,**" instruction (01xxxx) because he LSB comes first.Code: [Select]$0000 1 nop \ nop$0001 0 ld bc,xx00h (DB00 in your case)$0002 1 ld a,(bc) \ nop$0010 1 djnz $+0$0011 0 ld de,xx00h$0012 1 ld (de),a \ nop$00F0 1 ret p \ nop$00F1 WTF pop af \ nope (oof!)$00F2 0 jp p,xx00$00FF 0 rst 38h \ nopOnce the program is on your calc, if you could hex-dump it, then we could check if maybe it is missing the 01.