IO print.asm completed
This commit is contained in:
parent
89d1888f75
commit
d5e72719bb
4 changed files with 26 additions and 0 deletions
Binary file not shown.
1
vaja2/vhod_izhod/AA.dev
Normal file
1
vaja2/vhod_izhod/AA.dev
Normal file
|
|
@ -0,0 +1 @@
|
|||
SIC/XE
|
||||
25
vaja2/vhod_izhod/print.asm
Normal file
25
vaja2/vhod_izhod/print.asm
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
PRVI START 0
|
||||
LDX counter
|
||||
loop LDA niz, X
|
||||
WD device
|
||||
LDA counter
|
||||
ADD #3
|
||||
STA counter
|
||||
LDX counter
|
||||
COMP #bytes_len
|
||||
JLT loop
|
||||
HALT J HALT
|
||||
END PRVI
|
||||
|
||||
|
||||
counter WORD 0
|
||||
device BYTE X'AA'
|
||||
niz WORD 83 .S
|
||||
WORD 73 .I
|
||||
WORD 67 .C
|
||||
WORD 47 ./
|
||||
WORD 88 .X
|
||||
WORD 69 .E
|
||||
WORD 10 .newline
|
||||
lastin EQU *
|
||||
bytes_len EQU lastin - niz
|
||||
Loading…
Add table
Add a link
Reference in a new issue