1
0
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:
Ross Wilson 2016-02-14 10:43:18 +07:00
parent 6df2cdcd11
commit 083471f5d3

21
pyasm/example.asm Normal file
View 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