|
|
1.1 ! root 1: ; vi:set ts=8: ! 2: ; ! 3: ; XM6i ! 4: ; Copyright (C) 2013-2016 [email protected] ! 5: ; ! 6: ; iasm 動作確認用ソースコード ! 7: ; ! 8: ! 9: ; コメント中の文法エラーを検出しないこと→ " ! 10: ! 11: .cinclude <stdio.h> ! 12: .cinclude "foo.h" ! 13: .start test ! 14: .org $ff0000 ! 15: start: ! 16: nop ! 17: label_and_op: nop ! 18: label_without_sp:nop ! 19: nop ; comment ! 20: nop; comment ! 21: .rept (1+2) ! 22: nop ! 23: .endrept ! 24: ! 25: .dc.b 0, 0, 0, 0 ; comment ! 26: .ds.l 1 ! 27: .dc.b "あいう",0 ! 28: .even ! 29: ! 30: move.l label_and_op,a0 ! 31: bcc.b ne,start ! 32: bra.b start ! 33: bcc.s ne,start ! 34: bra.s start ! 35: moveq #$21,d0 ! 36: IOCS _B_PRINT ! 37: movem.w d0,(a0) ! 38: movem.w d0/d1,-(a0) ! 39: movem.l start,D0-D5/D7/A0/A2-A3/A5 ! 40: move.l a6,usp ! 41: move usp,a6 ! 42: sub.b d1,d2 ! 43: suba.l a1,a2 ! 44: ! 45: .end
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.