HD61700 ASSEMBLER Rev 0.41 - ASSEMBLY LIST OF [test01.s] 00001:0000 ; 00002:0000 ; 何もしないプログラム 00003:0000 ; 00004:1CD0 ORG &H1CD0 00005:1CD0 START MAIN 00006:1CD0 MAIN: 00007:1CD0 566054 PST UA,&H54 ;バンク切り替え 00008:1CD3 F7 RTN 00009:1CD4 ASSEMBLY COMPLETE, NO ERRORS FOUND HD61700 ASSEMBLER Rev 0.41 - MAP LIST OF [test01.s] LABEL : ADDRESS(hex) LABEL : ADDRESS(hex) ------------------------------------------------------------------ MAIN : 1CD0h START ADDRESS = 1CD0h END ADDRESS = 1CD3h EXECUTE ADDRESS = 1CD0h |
HD61700 ASSEMBLER Rev 0.41 - ASSEMBLY LIST OF [test02.s] 00001:0000 ; 00002:0000 ; BIOSコールプログラム 00003:0000 ; (レジスタ $17,$18 を使用して BEEP 音をならす) 00004:0000 ; 00005:1CD0 ORG &H1CD0 00006:1CD0 ORG &H1CD0 00007:1CD0 START MAIN 00008:1CD0 MAIN: 00009:1CD0 D111B333 LDW $17,&H33B3 ;BEEP 00010:1CD4 77DB1C CAL ROMCALL 00011:1CD7 566054 PST UA,&H54 ;バンク切り替え 00012:1CDA F7 RTN 00013:1CDB ROMCALL: 00014:1CDB D10F2353 LDW $15,&H5323 00015:1CDF A610 PHSW $16 00016:1CE1 566054 PST UA,&H54 ;バンク切り替え 00017:1CE4 DE11 JP $17 00018:1CE6 ASSEMBLY COMPLETE, NO ERRORS FOUND HD61700 ASSEMBLER Rev 0.41 - MAP LIST OF [test02.s] LABEL : ADDRESS(hex) LABEL : ADDRESS(hex) ------------------------------------------------------------------ MAIN : 1CD0h ROMCALL : 1CDBh START ADDRESS = 1CD0h END ADDRESS = 1CE5h EXECUTE ADDRESS = 1CD0h |
HD61700 ASSEMBLER Rev 0.41 - ASSEMBLY LIST OF [test03.s] 00001:0000 ; 00002:0000 ; BIOSコールプログラム 00003:0000 ; (レジスタ $28,$29 を使用して BEEP 音をならす) 00004:0000 ; 00005:1CD0 ORG &H1CD0 00006:1CD0 ORG &H1CD0 00007:1CD0 START MAIN 00008:1CD0 MAIN: 00009:1CD0 D11CB333 LDW $28,&H33B3 ;BEEP 00010:1CD4 77DB1C CAL ROMCALL 00011:1CD7 566054 PST UA,&H54 ;バンク切り替え 00012:1CDA F7 RTN 00013:1CDB ROMCALL: 00014:1CDB 566054 PST UA,&H54 ;バンク切り替え 00015:1CDE 372153 JP &H5321 00016:1CE1 ASSEMBLY COMPLETE, NO ERRORS FOUND HD61700 ASSEMBLER Rev 0.41 - MAP LIST OF [test03.s] LABEL : ADDRESS(hex) LABEL : ADDRESS(hex) ------------------------------------------------------------------ MAIN : 1CD0h ROMCALL : 1CDBh START ADDRESS = 1CD0h END ADDRESS = 1CE0h EXECUTE ADDRESS = 1CD0h |
HD61700 ASSEMBLER Rev 0.41 - ASSEMBLY LIST OF [test04.s] 00001:0000 ; 00002:0000 ; Hello world! 表示テスト 00003:0000 ; 00004:1CD0 ORG &H1CD0 00005:1CD0 ORG &H1CD0 00006:1CD0 START MAIN 00007:1CD0 MAIN: 00008:1CD0 D11C3893 LDW $28,&H9338 ;CLEDB 00009:1CD4 77FA1C CAL ROMCALL 00010:1CD7 00011:1CD7 D10A000C LDW $10,12*&H100+0 ;$10←0,$11←12 00012:1CDB D600001D PRE IX,HELLO_S 00013:1CDF D6200C1D PRE IY,HELLO_S+12 00014:1CE3 D6403B11 PRE IZ,&H113B ;EDTOP 00015:1CE7 D8 BUP 00016:1CE8 D11C7F97 LDW $28,&H977F ;DOTMK 00017:1CEC 77FA1C CAL ROMCALL 00018:1CEF 00019:1CEF D11C0F93 LDW $28,&H930F ;DOTDS 00020:1CF3 77FA1C CAL ROMCALL 00021:1CF6 00022:1CF6 566054 PST UA,&H54 ;バンク切り替え 00023:1CF9 F7 RTN 00024:1CFA ROMCALL: 00025:1CFA 566054 PST UA,&H54 ;バンク切り替え 00026:1CFD 372153 JP &H5321 00027:1D00 HELLO_S: 00028:1D00 48656C6C DB 'Hello, world!' 6F2C2077 6F726C64 21 00029:1D0D ASSEMBLY COMPLETE, NO ERRORS FOUND HD61700 ASSEMBLER Rev 0.41 - MAP LIST OF [test04.s] LABEL : ADDRESS(hex) LABEL : ADDRESS(hex) ------------------------------------------------------------------ MAIN : 1CD0h ROMCALL : 1CFAh HELLO_S : 1D00h START ADDRESS = 1CD0h END ADDRESS = 1D0Ch EXECUTE ADDRESS = 1CD0h |
HD61700 ASSEMBLER Rev 0.41 - ASSEMBLY LIST OF [test05.s] 00001:0000 ; 00002:0000 ; キー入力 (INKEY) テスト 00003:0000 ; 00004:1CD0 ORG &H1CD0 00005:1CD0 ORG &H1CD0 00006:1CD0 START MAIN 00007:1CD0 MAIN: 00008:1CD0 D11C1D19 LDW $28,&H191D ;INKEY 00009:1CD4 77E61C CAL ROMCALL 00010:1CD7 0111 SBC $17,$31 ;$31=0 00011:1CD9 B08A JR Z,MAIN 00012:1CDB D11CB333 LDW $28,&H33B3 ;BEEP 00013:1CDF 77E61C CAL ROMCALL 00014:1CE2 566054 PST UA,&H54 ;バンク切り替え 00015:1CE5 F7 RTN 00016:1CE6 ROMCALL: 00017:1CE6 566054 PST UA,&H54 ;バンク切り替え 00018:1CE9 372153 JP &H5321 00019:1CEC ASSEMBLY COMPLETE, NO ERRORS FOUND HD61700 ASSEMBLER Rev 0.41 - MAP LIST OF [test05.s] LABEL : ADDRESS(hex) LABEL : ADDRESS(hex) ------------------------------------------------------------------ MAIN : 1CD0h ROMCALL : 1CE6h START ADDRESS = 1CD0h END ADDRESS = 1CEBh EXECUTE ADDRESS = 1CD0h |
HD61700 ASSEMBLER Rev 0.41 - ASSEMBLY LIST OF [test06.s] 00001:0000 ; 00002:0000 ; キー入力 (CRTKY) テスト 00003:0000 ; 00004:1CD0 ORG &H1CD0 00005:1CD0 ORG &H1CD0 00006:1CD0 START MAIN 00007:1CD0 MAIN: 00008:1CD0 D11CC823 LDW $28,&H23C8 ;CRTKY 00009:1CD4 77E21C CAL ROMCALL 00010:1CD7 00011:1CD7 D11CB333 LDW $28,&H33B3 ;BEEP 00012:1CDB 77E21C CAL ROMCALL 00013:1CDE 566054 PST UA,&H54 ;バンク切り替え 00014:1CE1 F7 RTN 00015:1CE2 ROMCALL: 00016:1CE2 566054 PST UA,&H54 ;バンク切り替え 00017:1CE5 372153 JP &H5321 00018:1CE8 ASSEMBLY COMPLETE, NO ERRORS FOUND HD61700 ASSEMBLER Rev 0.41 - MAP LIST OF [test06.s] LABEL : ADDRESS(hex) LABEL : ADDRESS(hex) ------------------------------------------------------------------ MAIN : 1CD0h ROMCALL : 1CE2h START ADDRESS = 1CD0h END ADDRESS = 1CE7h EXECUTE ADDRESS = 1CD0h |
HD61700 ASSEMBLER Rev 0.41 - ASSEMBLY LIST OF [test07.s] 00001:0000 ; 00002:0000 ; 文字列 ("123") を整数型数値に変換する。 00003:0000 ; 00004:1CD0 ORG &H1CD0 00005:1CD0 ORG &H1CD0 00006:1CD0 START MAIN 00007:1CD0 MAIN: 00008:1CD0 D6400E1D PRE IZ,EXP 00009:1CD4 D11C2F11 LDW $28,&H112F ;EXPRW 00010:1CD8 77081D CAL ROMCALL 00011:1CDB D640121D PRE IZ,EXP_OUT 00012:1CDF A30A STIW $10,(IZ+$31) ;$31=0 00013:1CE1 A30C STIW $12,(IZ+$31) 00014:1CE3 A30E STIW $14,(IZ+$31) 00015:1CE5 A310 STIW $16,(IZ+$31) 00016:1CE7 2112 ST $18,(IZ+$31) 00017:1CE9 00018:1CE9 D11CC60E LDW $28,&H0EC6 ;BIN01 00019:1CED D6401B1D PRE IZ,BIN_OUT 00020:1CF1 77081D CAL ROMCALL 00021:1CF4 A10F STW $15,(IZ+$31) ;$31=0 00022:1CF6 00023:1CF6 D11CC823 LDW $28,&H23C8 ;CRTKY 00024:1CFA 77081D CAL ROMCALL 00025:1CFD 00026:1CFD D11CB333 LDW $28,&H33B3 ;BEEP 00027:1D01 77081D CAL ROMCALL 00028:1D04 566054 PST UA,&H54 ;バンク切り替え 00029:1D07 F7 RTN 00030:1D08 ROMCALL: 00031:1D08 566054 PST UA,&H54 ;バンク切り替え 00032:1D0B 372153 JP &H5321 00033:1D0E EXP: 00034:1D0E 31323300 DB '123',0 ;123=&H7B 00035:1D12 EXP_OUT: 00036:1D12 00000000 DS 9 ;$10〜$18の値が入る 00000000 00 00037:1D1B BIN_OUT: 00038:1D1B 0000 DS 2 ;$15,$16の値が入る 00039:1D1D ASSEMBLY COMPLETE, NO ERRORS FOUND HD61700 ASSEMBLER Rev 0.41 - MAP LIST OF [test07.s] LABEL : ADDRESS(hex) LABEL : ADDRESS(hex) ------------------------------------------------------------------ MAIN : 1CD0h ROMCALL : 1D08h EXP : 1D0Eh EXP_OUT : 1D12h BIN_OUT : 1D1Bh START ADDRESS = 1CD0h END ADDRESS = 1D1Ch EXECUTE ADDRESS = 1CD0h |
100 CLS 110 CLEAR 120 FOR I=&H1D12 TO &H1D1C 130 PRINT RIGHT$(HEX$(PEEK I),2);" "; 140 NEXT |
00 00 00 00 00 23 01 02 01 7B 00 |