0 Members and 1 Guest are viewing this topic.
b_call(getBaseVer) ; OS version in A and B cp 2 ; test A for OS version > v2.00 jr nc,fast ; it's > v2.00, so it's good cp 1 ; test A for OS version > v1.00 jr nz,slow ; if not, quit ld A,B ; test decimal in OS version cp 13 ; test if it's v1.13 or above jr c,slow ; it's > v1.13, so it's goodfast: ld A,1 b_call(setExSpeed) ... ; continue with the program at 15 MHzslow: ... ; continue with the program at 6 MHz
gbuf =plotsscreen
in a, (2) add a, a ; check if on a TI-83+ BE jr nc, is_a_ti83p ld a, 1 out (20h), ais_a_ti83p:
in a, (2) rlca and 1 out (20h), a
4) http://wikiti.brandonw.net/index.php?title=Z80_Routines:Graphic:put8x8sprite I tried to copy the first routine into Mimas, but it seems like Mimas cannot handle the line LD D, (IX) ôo. Does anyone know what the problem is?
Yeah, that's a known issue with Mimas. You have to write "LD D, (IX+0)" instead.
Quote from: FloppusMaximus on October 31, 2010, 07:16:07 pmYeah, that's a known issue with Mimas. You have to write "LD D, (IX+0)" instead.Ah, thanks. I should develope on PC while Mimas' early Alpha phase.5) How compare I the HL register by using something like CP?
or a push hl sbc hl,reg16 pop hl
or a sbc hl, de add hl, de
And here is the best one: (I think by calc84?)Code: [Select] or a sbc hl, de add hl, deThe flags are affected exactly the same way as cp.
Condition Bits Affected:S is not affectedZ is not affectedH is set if carry out of bit 11; reset otherwiseP/V is not affectedN is resetC is set if carry from bit 15; reset otherwise