From: j8takagi Date: Tue, 3 Jul 2018 14:51:41 +0000 (+0900) Subject: サンプルファイルを変更 X-Git-Tag: v0.5p1~13 X-Git-Url: https://j8takagi.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b3eb272540f5a2fee00a2ddc34624f51ed5625f9;p=YACASL2.git サンプルファイルを変更 --- diff --git a/as/sample/sum_10.o b/as/sample/sum_10.o index 3f09454..e1bd61d 100644 Binary files a/as/sample/sum_10.o and b/as/sample/sum_10.o differ diff --git a/as/sample/sum_10.o.casl b/as/sample/sum_10.o.casl index f1bd9f2..f3726d6 100644 --- a/as/sample/sum_10.o.casl +++ b/as/sample/sum_10.o.casl @@ -1,16 +1,19 @@ MAIN START - PUSH #0000,GR1 ; #0000 - LAD GR0,#0000 ; #0002 - LD GR1,#0011 ; #0004 - ADDL GR0,GR1 ; #0006 - ADDL GR1,#0013 ; #0007 - CPL GR1,#0012 ; #0009 - JPL #000F ; #000B - JUMP #0006 ; #000D - POP GR1 ; #000F - RET ; #0010 - DC 1 ; #0011 - DC 10 ; #0012 - DC 1 ; #0013 - DC 1 ; #0014 + PUSH #0000,GR1 ; #0000: #7001 #0000 + PUSH #0000,GR2 ; #0002: #7002 #0000 + XOR GR2,GR2 ; #0004: #3622 + LD GR1,#0015 ; #0005: #1010 #0015 + ADDL GR2,GR1 ; #0007: #2621 + ADDL GR1,#0017 ; #0008: #2210 #0017 + CPL GR1,#0016 ; #000A: #4110 #0016 + JPL #0010 ; #000C: #6500 #0010 + JUMP #0007 ; #000E: #6400 #0007 + ST GR2,#0018 ; #0010: #1120 #0018 + POP GR2 ; #0012: #7120 + POP GR1 ; #0013: #7110 + RET ; #0014: #8100 + DC 1 ; #0015: #0001 :: 1 = #0001 = 0000000000000001 + DC 10 ; #0016: #000A :: 10 = #000A = 0000000000001010 = '\n' + DC 1 ; #0017: #0001 :: 1 = #0001 = 0000000000000001 + NOP ; #0018: #0000 END