mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-23 20:08:05 +11:00
trs80: add *CL< and *CL>
This commit is contained in:
parent
2a578b3352
commit
b8d8007a3f
1
blk/249
1
blk/249
@ -4,6 +4,7 @@
|
||||
: PUSH0, BC 0 LDddnn, BC PUSHqq, ;
|
||||
: PUSH1, BC 1 LDddnn, BC PUSHqq, ;
|
||||
: PUSHZ, BC 0 LDddnn, IFZ, BC INCss, THEN, BC PUSHqq, ;
|
||||
: PUSHA, B 0 LDrn, C A LDrr, BC PUSHqq, ;
|
||||
: HLZ, A H LDrr, L ORr, ;
|
||||
: DEZ, A D LDrr, E ORr, ;
|
||||
: LDDE(HL), E (HL) LDrr, HL INCss, D (HL) LDrr, ;
|
||||
|
2
blk/494
2
blk/494
@ -1,4 +1,4 @@
|
||||
CODE DCSTAT ( drv -- f )
|
||||
CODE @DCSTAT ( drv -- f )
|
||||
BC POPqq,
|
||||
chkPS,
|
||||
A 0x28 LDrn, ( @DCSTAT )
|
||||
|
2
blk/495
2
blk/495
@ -1,4 +1,4 @@
|
||||
CODE RDSEC ( drv cylsec addr -- f )
|
||||
CODE @RDSEC ( drv cylsec addr -- f )
|
||||
HL POPqq,
|
||||
DE POPqq,
|
||||
BC POPqq,
|
||||
|
10
blk/496
10
blk/496
@ -1,4 +1,4 @@
|
||||
CODE WRSEC ( drv cylsec addr -- f )
|
||||
CODE @WRSEC ( drv cylsec addr -- f )
|
||||
HL POPqq,
|
||||
DE POPqq,
|
||||
BC POPqq,
|
||||
@ -7,5 +7,11 @@ CODE WRSEC ( drv cylsec addr -- f )
|
||||
0x28 RSTn,
|
||||
PUSHZ,
|
||||
;CODE
|
||||
|
||||
CODE @GET ( a -- c f )
|
||||
DE POPqq,
|
||||
chkPS,
|
||||
A 0x03 LDrn, ( @GET )
|
||||
0x28 RSTn,
|
||||
PUSHA, PUSHZ,
|
||||
;CODE
|
||||
|
||||
|
2
blk/499
2
blk/499
@ -6,7 +6,7 @@
|
||||
256 * + ( cylsec )
|
||||
;
|
||||
: FD@! ( wref blk -- )
|
||||
1 DCSTAT NOT IF _err THEN
|
||||
1 @DCSTAT NOT IF _err THEN
|
||||
4 * ( wr sec )
|
||||
4 0 DO ( wr sec )
|
||||
DUP I + _cylsec ( wr sec cs )
|
||||
|
Loading…
Reference in New Issue
Block a user