diff options
author | Ian C <ianc@noddybox.co.uk> | 2016-03-08 13:51:57 +0000 |
---|---|---|
committer | Ian C <ianc@noddybox.co.uk> | 2016-03-08 13:51:57 +0000 |
commit | 282fa7725993c9b0b0d2bb0977c124f11abea1fd (patch) | |
tree | e798be921f3cfc51ef0ca39c195a07218defc8d8 /src/test/cpm.1 | |
parent | 3bad2fc2e05e0ddbf7d398f120b6d5d525476ff9 (diff) |
Wildcard for args, EX changes and CP/M test.
+ Added '*' wildcard for macro arguments
+ Allow 'EX' with parameters reversed on the Z80
+ Added simple CP/M example test.
+ Added some files to gitignore
Diffstat (limited to 'src/test/cpm.1')
-rw-r--r-- | src/test/cpm.1 | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/src/test/cpm.1 b/src/test/cpm.1 new file mode 100644 index 0000000..60ec8c2 --- /dev/null +++ b/src/test/cpm.1 @@ -0,0 +1,44 @@ + ; + ; CP/M example (macro test) + ; + cpu z80 + option output-file,x.com + +BDOS: equ 5 +CONOUT: eq 9 + +strout: macro addr + ld de,@addr + ld c,CONOUT + call BDOS + endm + +strout1:macro + ld de,str + ld a,'$' + ld c,CONOUT +.loop + ex de,hl + cp (hl) + ex hl,de + jr z,end_str + call BDOS + inc de + jr loop + +.str defb \*,0 +.end_str + + endm + + + ; Main code + ; + org $100 + + strout str + strout1 "Bye world", 13, 10, '$' + + ret + +str: defb "Hello World",13,10,'$' |