mirror of
https://github.com/hsoft/collapseos.git
synced 2024-12-04 19:48:08 +11:00
forth: Forth-ify "PC@"
This commit is contained in:
parent
7beac94b5a
commit
eb6a07a162
Binary file not shown.
@ -733,23 +733,9 @@ PRINT:
|
|||||||
inc hl
|
inc hl
|
||||||
jr .loop
|
jr .loop
|
||||||
|
|
||||||
; ( port -- c )
|
|
||||||
.db "PC@"
|
|
||||||
.fill 4
|
|
||||||
.dw $-PRINT
|
|
||||||
.db 0
|
|
||||||
PFETCH:
|
|
||||||
.dw nativeWord
|
|
||||||
pop bc
|
|
||||||
call chkPS
|
|
||||||
ld h, 0
|
|
||||||
in l, (c)
|
|
||||||
push hl
|
|
||||||
jp next
|
|
||||||
|
|
||||||
.db "C,"
|
.db "C,"
|
||||||
.fill 5
|
.fill 5
|
||||||
.dw $-PFETCH
|
.dw $-PRINT
|
||||||
.db 0
|
.db 0
|
||||||
CWR:
|
CWR:
|
||||||
.dw nativeWord
|
.dw nativeWord
|
||||||
|
@ -124,7 +124,7 @@
|
|||||||
OR A,
|
OR A,
|
||||||
;
|
;
|
||||||
0xed41 OP2r OUT(C)r,
|
0xed41 OP2r OUT(C)r,
|
||||||
0xeb40 OP2r INr(C),
|
0xed40 OP2r INr(C),
|
||||||
|
|
||||||
( dd nn -- )
|
( dd nn -- )
|
||||||
: OP3ddnn
|
: OP3ddnn
|
||||||
|
@ -90,3 +90,11 @@ CODE PC!
|
|||||||
chkPS,
|
chkPS,
|
||||||
L OUT(C)r,
|
L OUT(C)r,
|
||||||
;CODE
|
;CODE
|
||||||
|
|
||||||
|
CODE PC@
|
||||||
|
BC POPqq,
|
||||||
|
chkPS,
|
||||||
|
H 0 LDrn,
|
||||||
|
L INr(C),
|
||||||
|
HL PUSHqq,
|
||||||
|
;CODE
|
||||||
|
Loading…
Reference in New Issue
Block a user