recipes/trs80: still wip...

This commit is contained in:
Virgil Dupras 2020-04-28 10:11:38 -04:00
parent 61b2e02351
commit 0b8c8c9ca0
3 changed files with 5 additions and 7 deletions

View File

@ -6,7 +6,8 @@ CODE KEY
;CODE
CODE EMIT
BC POPqq ( c == @DSP arg )
BC POPqq, ( c == @DSP arg )
chkPS,
A 0x02 LDrn, ( @DSP )
0x28 RSTn,
;CODE

View File

@ -8,4 +8,3 @@
OR A,
;
0x04 OP1r INCr, 0x05 OP1r DECr,
0xc7 OP1r RSTn,

View File

@ -1,16 +1,14 @@
( dd nn -- )
: LDdd(nn),
: LDdd(nn), ( dd nn -- )
0xed A,
SWAP <<4 0x4b OR A,
A,,
;
( nn dd -- )
: LD(nn)dd,
: LD(nn)dd, ( nn dd -- )
0xed A,
<<4 0x43 OR A,
A,,
;
: RSTn, 0xc7 OR A, ;
: JP(IX), IX DROP JP(HL), ;
: JP(IY), IY DROP JP(HL), ;