PBMファイル出力機能を追加
[YACASL2.git] / test / system / casl2 / lib_outb_w / outb_w.casl
1 ;;; casl2 outb_call.casl outb.casl
2 MAIN    START
3         LAD     GR2,0
4 LOOP    LD      GR1,VAL,GR2
5         CALL    OUTB
6         LAD     GR2,1,GR2
7         CPA     GR2,CNT
8         JZE     FIN
9         JUMP    LOOP
10 FIN     RET
11 VAL     DC      0
12         DC      #0001,#0002,#0004,#0008
13         DC      #0010,#0020,#0040,#0080
14         DC      #0100,#0200,#0400,#0800
15         DC      #1000,#2000,#4000,#7FFF
16         DC      #8000
17         DC      #8001,#C000,#E000,#F000
18         DC      #F800,#FC00,#FE00,#FF00
19         DC      #FF80,#FFC0,#FFE0,#FFF0
20         DC      #FFF8,#FFFC,#FFFE,#FFFF
21 CNT     DC      34
22         END