mirror of
https://github.com/rzzzwilson/pymlac.git
synced 2025-06-10 09:32:41 +00:00
Example code for the wiki
This commit is contained in:
parent
6df2cdcd11
commit
083471f5d3
21
pyasm/example.asm
Normal file
21
pyasm/example.asm
Normal file
@ -0,0 +1,21 @@
|
||||
; an assembler test file
|
||||
org 0100
|
||||
|
||||
test equ 4
|
||||
print equ 0200 ; print subroutine address
|
||||
|
||||
start law test
|
||||
dac save
|
||||
law 1
|
||||
add save2
|
||||
dac save2
|
||||
law string
|
||||
jms print
|
||||
hlt
|
||||
|
||||
save bss 1
|
||||
save2 data 3
|
||||
string ascii 'Test'
|
||||
data 0
|
||||
|
||||
end start
|
||||
Loading…
x
Reference in New Issue
Block a user