Re: A86: batt checker
[Prev][Next][Index][Thread]
Re: A86: batt checker
try an acurracy of about 15 t-states! the only problem with this is the
unknown timing of in f,(c); does someone want to test this? (I'm unable to
link)
.org _asm_exec_ram
call get
ld a,r
ld l,a
sub a
ld h,a
jp $4a33
get:
ld a,r
or a
jr nz,get
ld a,%1111111 ;test bit 7
out (1),a
ld c,1
nop
nop
loop:
in f,(c) ;undoc
jp nz,loop
ret
.end
>
>>maybe an accurate clock is possible after all.
>
>Uh-oh... Here comes the clock argument thread again...
Follow-Ups: