fcdev-cc65 0.0.0-stage → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (224) hide show
  1. package/LICENSE +17 -0
  2. package/asminc/_file.inc +27 -0
  3. package/asminc/_heap.inc +35 -0
  4. package/asminc/accelerator.inc +80 -0
  5. package/asminc/agat.inc +39 -0
  6. package/asminc/apple2.inc +95 -0
  7. package/asminc/apple2.mac +54 -0
  8. package/asminc/ascii_charmap.inc +287 -0
  9. package/asminc/atari.inc +1169 -0
  10. package/asminc/atari.mac +65 -0
  11. package/asminc/atari2600.inc +7 -0
  12. package/asminc/atari2600_riot.inc +20 -0
  13. package/asminc/atari2600_tia.inc +69 -0
  14. package/asminc/atari5200.inc +133 -0
  15. package/asminc/atari7800.inc +14 -0
  16. package/asminc/atari7800_maria.inc +39 -0
  17. package/asminc/atari7800_riot.inc +20 -0
  18. package/asminc/atari7800_tia.inc +69 -0
  19. package/asminc/atari_antic.inc +95 -0
  20. package/asminc/atari_atascii_charmap.inc +301 -0
  21. package/asminc/atari_gtia.inc +119 -0
  22. package/asminc/atari_pokey.inc +43 -0
  23. package/asminc/atari_screen_charmap.inc +303 -0
  24. package/asminc/atmos.inc +117 -0
  25. package/asminc/c128.inc +224 -0
  26. package/asminc/c16.inc +9 -0
  27. package/asminc/c64.inc +219 -0
  28. package/asminc/c65.inc +239 -0
  29. package/asminc/cbm.mac +56 -0
  30. package/asminc/cbm510.inc +200 -0
  31. package/asminc/cbm610.inc +121 -0
  32. package/asminc/cbm_filetype.inc +34 -0
  33. package/asminc/cbm_kernal.inc +248 -0
  34. package/asminc/cbm_petscii_charmap.inc +291 -0
  35. package/asminc/cbm_screen_charmap.inc +305 -0
  36. package/asminc/cpu.mac +4 -0
  37. package/asminc/creativision.inc +66 -0
  38. package/asminc/ctype.inc +31 -0
  39. package/asminc/ctype_common.inc +91 -0
  40. package/asminc/ctypetable.inc +48 -0
  41. package/asminc/cx16.inc +574 -0
  42. package/asminc/em-error.inc +49 -0
  43. package/asminc/em-kernel.inc +106 -0
  44. package/asminc/errno.inc +37 -0
  45. package/asminc/fcntl.inc +21 -0
  46. package/asminc/gamate.inc +64 -0
  47. package/asminc/generic.mac +53 -0
  48. package/asminc/get_tv.inc +22 -0
  49. package/asminc/joy-error.inc +44 -0
  50. package/asminc/joy-kernel.inc +83 -0
  51. package/asminc/kim1.inc +31 -0
  52. package/asminc/longbranch.mac +88 -0
  53. package/asminc/lynx.inc +460 -0
  54. package/asminc/mega65.inc +239 -0
  55. package/asminc/modload.inc +78 -0
  56. package/asminc/module.mac +13 -0
  57. package/asminc/mouse-kernel.inc +184 -0
  58. package/asminc/nes.inc +93 -0
  59. package/asminc/o65.inc +150 -0
  60. package/asminc/opcodes.inc +514 -0
  61. package/asminc/pce.inc +93 -0
  62. package/asminc/pet.inc +100 -0
  63. package/asminc/plus4.inc +86 -0
  64. package/asminc/rp6502.inc +98 -0
  65. package/asminc/ser-error.inc +55 -0
  66. package/asminc/ser-kernel.inc +162 -0
  67. package/asminc/signal.inc +57 -0
  68. package/asminc/sim65.inc +75 -0
  69. package/asminc/smc.inc +267 -0
  70. package/asminc/stat.inc +64 -0
  71. package/asminc/statvfs.inc +46 -0
  72. package/asminc/stdio.inc +74 -0
  73. package/asminc/supervision.inc +75 -0
  74. package/asminc/sym1.inc +186 -0
  75. package/asminc/telestrat.inc +546 -0
  76. package/asminc/tgi-error.inc +52 -0
  77. package/asminc/tgi-kernel.inc +233 -0
  78. package/asminc/tgi-vectorfont.inc +70 -0
  79. package/asminc/time.inc +74 -0
  80. package/asminc/utsname.inc +46 -0
  81. package/asminc/vic20.inc +119 -0
  82. package/asminc/zeropage.inc +40 -0
  83. package/bin/ar65.exe +0 -0
  84. package/bin/ca65.exe +0 -0
  85. package/bin/cc65.exe +0 -0
  86. package/bin/da65.exe +0 -0
  87. package/bin/ld65.exe +0 -0
  88. package/cfg/module.cfg +21 -0
  89. package/cfg/nes.cfg +62 -0
  90. package/cfg/none.cfg +37 -0
  91. package/include/6502.h +140 -0
  92. package/include/_6522.h +68 -0
  93. package/include/_6525.h +62 -0
  94. package/include/_6526.h +71 -0
  95. package/include/_6545.h +53 -0
  96. package/include/_6551.h +55 -0
  97. package/include/_antic.h +254 -0
  98. package/include/_atari5200os.h +94 -0
  99. package/include/_atarios.h +661 -0
  100. package/include/_gtia.h +281 -0
  101. package/include/_heap.h +60 -0
  102. package/include/_maria.h +63 -0
  103. package/include/_mikey.h +264 -0
  104. package/include/_pbi.h +63 -0
  105. package/include/_pia.h +52 -0
  106. package/include/_pokey.h +220 -0
  107. package/include/_riot.h +26 -0
  108. package/include/_sid.h +68 -0
  109. package/include/_suzy.h +336 -0
  110. package/include/_ted.h +86 -0
  111. package/include/_tia.h +100 -0
  112. package/include/_vdc.h +53 -0
  113. package/include/_vic.h +67 -0
  114. package/include/_vic2.h +192 -0
  115. package/include/_vic3.h +188 -0
  116. package/include/accelerator.h +339 -0
  117. package/include/agat.h +76 -0
  118. package/include/apple2.h +358 -0
  119. package/include/apple2_filetype.h +324 -0
  120. package/include/apple2enh.h +67 -0
  121. package/include/arpa/inet.h +81 -0
  122. package/include/ascii_charmap.h +295 -0
  123. package/include/assert.h +59 -0
  124. package/include/atari.h +554 -0
  125. package/include/atari2600.h +32 -0
  126. package/include/atari5200.h +100 -0
  127. package/include/atari7800.h +67 -0
  128. package/include/atari_atascii_charmap.h +304 -0
  129. package/include/atari_screen_charmap.h +310 -0
  130. package/include/atmos.h +189 -0
  131. package/include/c128.h +175 -0
  132. package/include/c16.h +60 -0
  133. package/include/c64.h +175 -0
  134. package/include/c65.h +120 -0
  135. package/include/cbm.h +321 -0
  136. package/include/cbm264.h +165 -0
  137. package/include/cbm510.h +168 -0
  138. package/include/cbm610.h +153 -0
  139. package/include/cbm_filetype.h +108 -0
  140. package/include/cbm_petscii_charmap.h +297 -0
  141. package/include/cbm_screen_charmap.h +311 -0
  142. package/include/cc65.h +109 -0
  143. package/include/conio.h +248 -0
  144. package/include/creativision.h +78 -0
  145. package/include/ctype.h +88 -0
  146. package/include/cx16.h +420 -0
  147. package/include/dbg.h +124 -0
  148. package/include/device.h +72 -0
  149. package/include/dio.h +113 -0
  150. package/include/dirent.h +151 -0
  151. package/include/em/em-kernel.h +77 -0
  152. package/include/em.h +135 -0
  153. package/include/errno.h +135 -0
  154. package/include/fcntl.h +75 -0
  155. package/include/gamate.h +209 -0
  156. package/include/geos/gconst.h +69 -0
  157. package/include/geos/gdisk.h +79 -0
  158. package/include/geos/gdlgbox.h +110 -0
  159. package/include/geos/gfile.h +72 -0
  160. package/include/geos/ggraph.h +180 -0
  161. package/include/geos/gmemory.h +30 -0
  162. package/include/geos/gmenu.h +53 -0
  163. package/include/geos/gprocess.h +22 -0
  164. package/include/geos/gsprite.h +96 -0
  165. package/include/geos/gstruct.h +174 -0
  166. package/include/geos/gsym.h +340 -0
  167. package/include/geos/gsys.h +54 -0
  168. package/include/geos.h +109 -0
  169. package/include/inttypes.h +237 -0
  170. package/include/iso646.h +60 -0
  171. package/include/joystick/joy-kernel.h +84 -0
  172. package/include/joystick.h +109 -0
  173. package/include/kim1.h +73 -0
  174. package/include/limits.h +87 -0
  175. package/include/locale.h +83 -0
  176. package/include/lynx.h +144 -0
  177. package/include/lz4.h +43 -0
  178. package/include/lzsa.h +56 -0
  179. package/include/mega65.h +120 -0
  180. package/include/modload.h +103 -0
  181. package/include/mouse/mouse-kernel.h +67 -0
  182. package/include/mouse.h +220 -0
  183. package/include/nes.h +203 -0
  184. package/include/o65.h +178 -0
  185. package/include/osic1p.h +66 -0
  186. package/include/pce.h +110 -0
  187. package/include/peekpoke.h +58 -0
  188. package/include/pen.h +78 -0
  189. package/include/pet.h +113 -0
  190. package/include/plus4.h +63 -0
  191. package/include/rp6502.h +266 -0
  192. package/include/serial.h +180 -0
  193. package/include/setjmp.h +55 -0
  194. package/include/signal.h +74 -0
  195. package/include/sim65.h +136 -0
  196. package/include/stdarg.h +57 -0
  197. package/include/stdbool.h +53 -0
  198. package/include/stddef.h +66 -0
  199. package/include/stdint.h +144 -0
  200. package/include/stdio.h +166 -0
  201. package/include/stdlib.h +174 -0
  202. package/include/string.h +106 -0
  203. package/include/supervision.h +137 -0
  204. package/include/sym1.h +165 -0
  205. package/include/sys/stat.h +94 -0
  206. package/include/sys/statvfs.h +74 -0
  207. package/include/sys/types.h +102 -0
  208. package/include/sys/utsname.h +97 -0
  209. package/include/target.h +77 -0
  210. package/include/telestrat.h +129 -0
  211. package/include/tgi/tgi-error.h +64 -0
  212. package/include/tgi/tgi-kernel.h +75 -0
  213. package/include/tgi/tgi-vectorfont.h +90 -0
  214. package/include/tgi.h +286 -0
  215. package/include/time.h +143 -0
  216. package/include/unistd.h +103 -0
  217. package/include/vic20.h +141 -0
  218. package/include/zlib.h +175 -0
  219. package/include/zx02.h +44 -0
  220. package/lib/nes.lib +0 -0
  221. package/lib/none.lib +0 -0
  222. package/manifest.json +227 -0
  223. package/package.json +19 -4
  224. package/README.md +0 -3
package/LICENSE ADDED
@@ -0,0 +1,17 @@
1
+ This software is provided 'as-is', without any express or implied warranty.
2
+ In no event will the authors be held liable for any damages arising from
3
+ the use of this software.
4
+
5
+ Permission is granted to anyone to use this software for any purpose,
6
+ including commercial applications, and to alter it and redistribute it
7
+ freely, subject to the following restrictions:
8
+
9
+ 1. The origin of this software must not be misrepresented; you must not
10
+ claim that you wrote the original software. If you use this software in
11
+ a product, an acknowledgment in the product documentation would be
12
+ appreciated but is not required.
13
+
14
+ 2. Altered source versions must be plainly marked as such, and must not
15
+ be misrepresented as being the original software.
16
+
17
+ 3. This notice may not be removed or altered from any source distribution.
@@ -0,0 +1,27 @@
1
+ ;
2
+ ; _file.inc
3
+ ;
4
+ ; (C) Copyright 2002 Ullrich von Bassewitz (uz@cc65.org)
5
+ ;
6
+
7
+ ; Assembler include file that makes the constants and structures in _file.h
8
+ ; available for asm code.
9
+
10
+ ; Struct _FILE
11
+ .struct _FILE
12
+ f_fd .byte
13
+ f_flags .byte
14
+ f_pushback .byte
15
+ .endstruct
16
+
17
+ ; Flags field
18
+ _FCLOSED = $00
19
+ _FOPEN = $01
20
+ _FEOF = $02
21
+ _FERROR = $04
22
+ _FPUSHBACK = $08
23
+
24
+ ; File table
25
+ .global __filetab
26
+
27
+
@@ -0,0 +1,35 @@
1
+ ;
2
+ ; _heap.inc
3
+ ;
4
+ ; (c) Copyright 2003, Ullrich von Bassewitz (uz@cc65.org)
5
+ ;
6
+
7
+ ; Assembler include file that makes the constants and structures in _heap.h
8
+ ; available for asm code.
9
+
10
+ ; Struct freeblock
11
+ ; NOTE: For performance reasons, the asm code often uses increment/decrement
12
+ ; operators to access other offsets, so just changing offsets here will
13
+ ; probably not work.
14
+ .struct freeblock
15
+ size .word
16
+ next .addr
17
+ prev .addr
18
+ .endstruct
19
+
20
+ ; Struct usedblock
21
+ ; See notes above
22
+ .struct usedblock
23
+ size .word
24
+ start .addr
25
+ .endstruct
26
+
27
+ HEAP_MIN_BLOCKSIZE = .sizeof (freeblock) ; Minimum size of an allocated block
28
+ HEAP_ADMIN_SPACE = .sizeof (usedblock) ; Additional space for used bock
29
+
30
+ ; Variables
31
+ .global ___heaporg
32
+ .global ___heapptr
33
+ .global ___heapend
34
+ .global ___heapfirst
35
+ .global ___heaplast
@@ -0,0 +1,80 @@
1
+ ;
2
+ ; Accelerator definitions.
3
+ ;
4
+
5
+ ; ---------------------------------------------------------------------------
6
+ ; Speed definitions for all accelerator, to be used as input for the 'set'
7
+ ; functions.
8
+
9
+
10
+ SPEED_SLOW = $00
11
+ SPEED_FAST = $FF
12
+
13
+ SPEED_1X = SPEED_SLOW
14
+ SPEED_2X = 2 - 1
15
+ SPEED_3X = 3 - 1
16
+ SPEED_4X = 4 - 1
17
+ SPEED_5X = 5 - 1
18
+ SPEED_6X = 6 - 1
19
+ SPEED_7X = 7 - 1
20
+ SPEED_8X = 8 - 1
21
+ SPEED_10X = 10 - 1
22
+ SPEED_12X = 12 - 1
23
+ SPEED_16X = 16 - 1
24
+ SPEED_20X = 20 - 1
25
+
26
+
27
+ ; ---------------------------------------------------------------------------
28
+ ; C64/C128 Super CPU cartridge
29
+
30
+ SuperCPU_Slow := $D07A
31
+ SuperCPU_Fast := $D07B
32
+ SuperCPU_Speed_Mode := $D0B8
33
+ SuperCPU_Detect := $D0BC
34
+
35
+
36
+ ; ---------------------------------------------------------------------------
37
+ ; C64DTV
38
+
39
+ C64DTV_Extended_Regs := $D03F
40
+
41
+ C64DTV_Slow = $00
42
+ C64DTV_Fast = $03
43
+
44
+
45
+ ; ---------------------------------------------------------------------------
46
+ ; C128 native and C128 in C64 mode
47
+
48
+ C128_VICIIE_CLK := $D030
49
+
50
+
51
+ ; ---------------------------------------------------------------------------
52
+ ; C64 Chameleon cartridge
53
+
54
+ CHAMELEON_CFGTUR := $D0F3
55
+ CHAMELEON_CFGENA := $D0FE
56
+
57
+ CHAMELEON_ENABLE_REGS = $2A
58
+ CHAMELEON_DISABLE_REGS = $FF
59
+
60
+ CHAMELEON_CFGTUR_LIMIT_1MHZ = %00001100
61
+ CHAMELEON_CFGTUR_LIMIT_NONE = %10000000
62
+
63
+
64
+ ; ---------------------------------------------------------------------------
65
+ ; C65/C64DX in C64 mode
66
+
67
+ C65_VICIII_KEY := $D02F
68
+ C65_VICIII_CTRL_B := $D031
69
+
70
+ C65_VICIII_UNLOCK_1 = $A5
71
+ C65_VICIII_UNLOCK_2 = $96
72
+
73
+
74
+ ; ---------------------------------------------------------------------------
75
+ ; C64 Turbo Master cartridge
76
+
77
+ TURBOMASTER_DETECT := $BF53
78
+
79
+ TURBOMASTER_SPEED_REG := $00
80
+
@@ -0,0 +1,39 @@
1
+
2
+ ;-----------------------------------------------------------------------------
3
+ ; Zero page stuff
4
+
5
+ WNDLFT := $20 ; Text window left
6
+ WNDWDTH := $21 ; Text window width
7
+ WNDTOP := $22 ; Text window top
8
+ WNDBTM := $23 ; Text window bottom+1
9
+ CH := $24 ; Cursor horizontal position
10
+ CV := $25 ; Cursor vertical position
11
+ BASL := $28 ; Text base address low
12
+ BASH := $29 ; Text base address high
13
+ CURSOR := $2D ; Cursor character
14
+ TATTR := $32 ; Text attributes
15
+ PROMPT := $33 ; Used by GETLN
16
+ VCOUT := $36 ; COUT Subroutine Vector
17
+ VCIN := $38 ; CIN Subroutine Vector
18
+ RNDL := $4E ; Random counter low
19
+ RNDH := $4F ; Random counter high
20
+ HIMEM := $73 ; Highest available memory address+1
21
+
22
+ ;-----------------------------------------------------------------------------
23
+ ; Vectors
24
+
25
+ DOSWARM := $03D0 ; DOS warmstart vector
26
+ BRKVec := $03F0 ; Break vector
27
+ SOFTEV := $03F2 ; Vector for warm start
28
+ PWREDUP := $03F4 ; This must be = EOR #$A5 of SOFTEV+1
29
+
30
+ ;-----------------------------------------------------------------------------
31
+ ; Hardware
32
+
33
+ ; Keyboard input
34
+ KBD := $C000 ; Read keyboard
35
+ KBDSTRB := $C010 ; Clear keyboard strobe
36
+
37
+ ; Game controller
38
+ BUTN0 := $C061 ; Open-Apple Key
39
+ BUTN1 := $C062 ; Closed-Apple Key
@@ -0,0 +1,95 @@
1
+
2
+ ;-----------------------------------------------------------------------------
3
+ ; Zero page
4
+
5
+ WNDLFT := $20 ; Text window left
6
+ WNDWDTH := $21 ; Text window width
7
+ WNDTOP := $22 ; Text window top
8
+ WNDBTM := $23 ; Text window bottom+1
9
+ CH := $24 ; Cursor horizontal position
10
+ CV := $25 ; Cursor vertical position
11
+ BASL := $28 ; Text base address low
12
+ BASH := $29 ; Text base address high
13
+ INVFLG := $32 ; Normal/inverse(/flash)
14
+ PROMPT := $33 ; Used by GETLN
15
+ RNDL := $4E ; Random counter low
16
+ RNDH := $4F ; Random counter high
17
+ HIMEM := $73 ; Highest available memory address+1
18
+ CURLIN := $75 ; Current line number being executed
19
+
20
+ ;-----------------------------------------------------------------------------
21
+ ; Vectors
22
+
23
+ DOSWARM := $03D0 ; DOS warmstart vector
24
+ BRKVec := $03F0 ; Break vector
25
+ SOFTEV := $03F2 ; Vector for warm start
26
+ PWREDUP := $03F4 ; This must be = EOR #$A5 of SOFTEV+1
27
+ ROM_RST := $FFFC ; 6502 reset vector
28
+ ROM_IRQ := $FFFE ; 6502 IRQ vector
29
+
30
+ ;-----------------------------------------------------------------------------
31
+ ; 80 column firmware
32
+
33
+ OURCH := $057B ; Cursor horizontal position
34
+ OURCV := $05FB ; Cursor vertical position
35
+
36
+ ;-----------------------------------------------------------------------------
37
+ ; Hardware
38
+
39
+ ; Keyboard input
40
+ KBD := $C000 ; Read keyboard
41
+ KBDSTRB := $C010 ; Clear keyboard strobe
42
+
43
+ ; 80 column video
44
+ CLR80COL:= $C000 ; Disable 80 column store
45
+ SET80COL:= $C001 ; Enable 80 column store
46
+ RD80COL := $C018 ; >127 if 80 column store enabled
47
+ RD80VID := $C01F ; >127 if 80 column video enabled
48
+
49
+ ; Character set
50
+ CLRALTCHAR := $C00E ; Normal Apple II char set
51
+ SETALTCHAR := $C00F ; Norm/inv LC, no flash
52
+ ALTCHARSET := $C01E ; >127 if alt charset switched in
53
+
54
+ ; Language card
55
+ RDLCBNK2:= $C011 ; >127 if LC bank 2 in use
56
+ RDLCRAM := $C012 ; >127 if LC is read enabled
57
+ ROMIN := $C081 ; Swap in D000-FFFF ROM
58
+ LCBANK2 := $C083 ; Swap in LC bank 2
59
+ LCBANK1 := $C08B ; Swap in LC bank 1
60
+
61
+ ; Vertical blanking
62
+ RDVBLBAR := $C019 ; >127 if not vertical blanking
63
+ RDVBLMSK := $C041 ; >127 if VBL interrupts enabled
64
+ DISVBL := $C05A ; Disable VBL interrupts
65
+ ENVBL := $C05B ; Enable VBL interrupts
66
+
67
+ ; Video mode
68
+ TXTCLR := $C050 ; Display graphics
69
+ TXTSET := $C051 ; Display text
70
+ MIXCLR := $C052 ; Disable 4 lines of text
71
+ MIXSET := $C053 ; Enable 4 lines of text
72
+ LOWSCR := $C054 ; Page 1
73
+ HISCR := $C055 ; Page 2
74
+ LORES := $C056 ; Lores graphics
75
+ HIRES := $C057 ; Hires graphics
76
+ DHIRESON := $C05E ; Enable double-width graphics
77
+ DHIRESOFF := $C05F ; Disable double-width graphics
78
+
79
+ ; Game controller
80
+ TAPEIN := $C060 ; Read casette input / Switch input 3
81
+ BUTN0 := $C061 ; Switch input 0 / Open-Apple key
82
+ BUTN1 := $C062 ; Switch input 1 / Closed-Apple key
83
+ BUTN2 := $C063 ; Switch input 2 / Shift key
84
+ PADDL0 := $C064 ; Analog input 0
85
+ PADDL1 := $C065 ; Analog input 1
86
+ PADDL2 := $C066 ; Analog input 2
87
+ PADDL3 := $C067 ; Analog input 3
88
+ PTRIG := $C070 ; Analog input reset
89
+
90
+ ; Input/Output Unit
91
+ IOUDISON := $C07E ; Disable IOU
92
+ IOUDISOFF := $C07F ; Enable IOU
93
+
94
+ ; Control Your Apple
95
+ CYAREG := $C036 ; Bits 0-3=disk detect 4=shadow all banks 7=fast
@@ -0,0 +1,54 @@
1
+ ; Convert characters to screen codes
2
+
3
+ ; Helper macro that converts and outputs one character
4
+ .macro _scrcode char
5
+ .if (char < 256)
6
+ .byte (char + 128)
7
+ .else
8
+ .error "scrcode: Character constant out of range"
9
+ .endif
10
+ .endmacro
11
+
12
+ .macro scrcode arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9
13
+
14
+ ; Bail out if next argument is empty
15
+ .if .blank (arg1)
16
+ .exitmacro
17
+ .endif
18
+
19
+ ; Check for a string
20
+ .if .match ({arg1}, "")
21
+
22
+ ; Walk over all string chars
23
+ .repeat .strlen (arg1), i
24
+ _scrcode {.strat (arg1, i)}
25
+ .endrepeat
26
+
27
+ ; Check for a number
28
+ .elseif .match (.left (1, {arg1}), 0)
29
+
30
+ ; Just output the number
31
+ _scrcode arg1
32
+
33
+ ; Check for a character
34
+ .elseif .match (.left (1, {arg1}), 'a')
35
+
36
+ ; Just output the character
37
+ _scrcode arg1
38
+
39
+ ; Check for an identifier
40
+ .elseif .match (.left (1, {arg1}), identifier)
41
+
42
+ ; Just output the identifier
43
+ _scrcode arg1
44
+
45
+ ; Anything else is an error
46
+ .else
47
+
48
+ .error "scrcode: invalid argument type"
49
+
50
+ .endif
51
+
52
+ ; Call the macro recursively with the remaining args
53
+ scrcode arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9
54
+ .endmacro
@@ -0,0 +1,287 @@
1
+ ;/*****************************************************************************/
2
+ ;/* */
3
+ ;/* ascii_charmap.inc */
4
+ ;/* */
5
+ ;/* No translations, encodings are stored as they were typed in the host. */
6
+ ;/* */
7
+ ;/* */
8
+ ;/* 2019-09-07, Greg King */
9
+ ;/* */
10
+ ;/* This software is provided "as-is", without any expressed or implied */
11
+ ;/* warranty. In no event will the authors be held liable for any damages */
12
+ ;/* arising from the use of this software. */
13
+ ;/* */
14
+ ;/* Permission is granted to anyone to use this software for any purpose, */
15
+ ;/* including commercial applications, and to alter it and redistribute it */
16
+ ;/* freely, subject to the following restrictions: */
17
+ ;/* */
18
+ ;/* 1. The origin of this software must not be misrepresented; you must not */
19
+ ;/* claim that you wrote the original software. If you use this software */
20
+ ;/* in a product, an acknowledgment in the product documentation would be */
21
+ ;/* appreciated, but is not required. */
22
+ ;/* 2. Altered source versions must be plainly marked as such, and must not */
23
+ ;/* be misrepresented as being the original software. */
24
+ ;/* 3. This notice must not be removed or altered from any source */
25
+ ;/* distribution. */
26
+ ;/* */
27
+ ;/*****************************************************************************/
28
+
29
+ ;/* ASCII */
30
+ .charmap $00, $00
31
+ .charmap $01, $01
32
+ .charmap $02, $02
33
+ .charmap $03, $03
34
+ .charmap $04, $04
35
+ .charmap $05, $05
36
+ .charmap $06, $06
37
+ .charmap $07, $07
38
+ .charmap $08, $08
39
+ .charmap $09, $09
40
+ .charmap $0A, $0A
41
+ .charmap $0B, $0B
42
+ .charmap $0C, $0C
43
+ .charmap $0D, $0D
44
+ .charmap $0E, $0E
45
+ .charmap $0F, $0F
46
+ .charmap $10, $10
47
+ .charmap $11, $11
48
+ .charmap $12, $12
49
+ .charmap $13, $13
50
+ .charmap $14, $14
51
+ .charmap $15, $15
52
+ .charmap $16, $16
53
+ .charmap $17, $17
54
+ .charmap $18, $18
55
+ .charmap $19, $19
56
+ .charmap $1A, $1A
57
+ .charmap $1B, $1B
58
+ .charmap $1C, $1C
59
+ .charmap $1D, $1D
60
+ .charmap $1E, $1E
61
+ .charmap $1F, $1F
62
+ .charmap $20, $20
63
+ .charmap $21, $21
64
+ .charmap $22, $22
65
+ .charmap $23, $23
66
+ .charmap $24, $24
67
+ .charmap $25, $25
68
+ .charmap $26, $26
69
+ .charmap $27, $27
70
+ .charmap $28, $28
71
+ .charmap $29, $29
72
+ .charmap $2A, $2A
73
+ .charmap $2B, $2B
74
+ .charmap $2C, $2C
75
+ .charmap $2D, $2D
76
+ .charmap $2E, $2E
77
+ .charmap $2F, $2F
78
+ .charmap $30, $30
79
+ .charmap $31, $31
80
+ .charmap $32, $32
81
+ .charmap $33, $33
82
+ .charmap $34, $34
83
+ .charmap $35, $35
84
+ .charmap $36, $36
85
+ .charmap $37, $37
86
+ .charmap $38, $38
87
+ .charmap $39, $39
88
+ .charmap $3A, $3A
89
+ .charmap $3B, $3B
90
+ .charmap $3C, $3C
91
+ .charmap $3D, $3D
92
+ .charmap $3E, $3E
93
+ .charmap $3F, $3F
94
+ .charmap $40, $40
95
+ .charmap $41, $41
96
+ .charmap $42, $42
97
+ .charmap $43, $43
98
+ .charmap $44, $44
99
+ .charmap $45, $45
100
+ .charmap $46, $46
101
+ .charmap $47, $47
102
+ .charmap $48, $48
103
+ .charmap $49, $49
104
+ .charmap $4A, $4A
105
+ .charmap $4B, $4B
106
+ .charmap $4C, $4C
107
+ .charmap $4D, $4D
108
+ .charmap $4E, $4E
109
+ .charmap $4F, $4F
110
+ .charmap $50, $50
111
+ .charmap $51, $51
112
+ .charmap $52, $52
113
+ .charmap $53, $53
114
+ .charmap $54, $54
115
+ .charmap $55, $55
116
+ .charmap $56, $56
117
+ .charmap $57, $57
118
+ .charmap $58, $58
119
+ .charmap $59, $59
120
+ .charmap $5A, $5A
121
+ .charmap $5B, $5B
122
+ .charmap $5C, $5C
123
+ .charmap $5D, $5D
124
+ .charmap $5E, $5E
125
+ .charmap $5F, $5F
126
+ .charmap $60, $60
127
+ .charmap $61, $61
128
+ .charmap $62, $62
129
+ .charmap $63, $63
130
+ .charmap $64, $64
131
+ .charmap $65, $65
132
+ .charmap $66, $66
133
+ .charmap $67, $67
134
+ .charmap $68, $68
135
+ .charmap $69, $69
136
+ .charmap $6A, $6A
137
+ .charmap $6B, $6B
138
+ .charmap $6C, $6C
139
+ .charmap $6D, $6D
140
+ .charmap $6E, $6E
141
+ .charmap $6F, $6F
142
+ .charmap $70, $70
143
+ .charmap $71, $71
144
+ .charmap $72, $72
145
+ .charmap $73, $73
146
+ .charmap $74, $74
147
+ .charmap $75, $75
148
+ .charmap $76, $76
149
+ .charmap $77, $77
150
+ .charmap $78, $78
151
+ .charmap $79, $79
152
+ .charmap $7A, $7A
153
+ .charmap $7B, $7B
154
+ .charmap $7C, $7C
155
+ .charmap $7D, $7D
156
+ .charmap $7E, $7E
157
+ .charmap $7F, $7F
158
+
159
+ ;/* beyond ASCII */
160
+ .charmap $80, $80
161
+ .charmap $81, $81
162
+ .charmap $82, $82
163
+ .charmap $83, $83
164
+ .charmap $84, $84
165
+ .charmap $85, $85
166
+ .charmap $86, $86
167
+ .charmap $87, $87
168
+ .charmap $88, $88
169
+ .charmap $89, $89
170
+ .charmap $8A, $8A
171
+ .charmap $8B, $8B
172
+ .charmap $8C, $8C
173
+ .charmap $8D, $8D
174
+ .charmap $8E, $8E
175
+ .charmap $8F, $8F
176
+ .charmap $90, $90
177
+ .charmap $91, $91
178
+ .charmap $92, $92
179
+ .charmap $93, $93
180
+ .charmap $94, $94
181
+ .charmap $95, $95
182
+ .charmap $96, $96
183
+ .charmap $97, $97
184
+ .charmap $98, $98
185
+ .charmap $99, $99
186
+ .charmap $9A, $9A
187
+ .charmap $9B, $9B
188
+ .charmap $9C, $9C
189
+ .charmap $9D, $9D
190
+ .charmap $9E, $9E
191
+ .charmap $9F, $9F
192
+ .charmap $A0, $A0
193
+ .charmap $A1, $A1
194
+ .charmap $A2, $A2
195
+ .charmap $A3, $A3
196
+ .charmap $A4, $A4
197
+ .charmap $A5, $A5
198
+ .charmap $A6, $A6
199
+ .charmap $A7, $A7
200
+ .charmap $A8, $A8
201
+ .charmap $A9, $A9
202
+ .charmap $AA, $AA
203
+ .charmap $AB, $AB
204
+ .charmap $AC, $AC
205
+ .charmap $AD, $AD
206
+ .charmap $AE, $AE
207
+ .charmap $AF, $AF
208
+ .charmap $B0, $B0
209
+ .charmap $B1, $B1
210
+ .charmap $B2, $B2
211
+ .charmap $B3, $B3
212
+ .charmap $B4, $B4
213
+ .charmap $B5, $B5
214
+ .charmap $B6, $B6
215
+ .charmap $B7, $B7
216
+ .charmap $B8, $B8
217
+ .charmap $B9, $B9
218
+ .charmap $BA, $BA
219
+ .charmap $BB, $BB
220
+ .charmap $BC, $BC
221
+ .charmap $BD, $BD
222
+ .charmap $BE, $BE
223
+ .charmap $BF, $BF
224
+ .charmap $C0, $C0
225
+ .charmap $C1, $C1
226
+ .charmap $C2, $C2
227
+ .charmap $C3, $C3
228
+ .charmap $C4, $C4
229
+ .charmap $C5, $C5
230
+ .charmap $C6, $C6
231
+ .charmap $C7, $C7
232
+ .charmap $C8, $C8
233
+ .charmap $C9, $C9
234
+ .charmap $CA, $CA
235
+ .charmap $CB, $CB
236
+ .charmap $CC, $CC
237
+ .charmap $CD, $CD
238
+ .charmap $CE, $CE
239
+ .charmap $CF, $CF
240
+ .charmap $D0, $D0
241
+ .charmap $D1, $D1
242
+ .charmap $D2, $D2
243
+ .charmap $D3, $D3
244
+ .charmap $D4, $D4
245
+ .charmap $D5, $D5
246
+ .charmap $D6, $D6
247
+ .charmap $D7, $D7
248
+ .charmap $D8, $D8
249
+ .charmap $D9, $D9
250
+ .charmap $DA, $DA
251
+ .charmap $DB, $DB
252
+ .charmap $DC, $DC
253
+ .charmap $DD, $DD
254
+ .charmap $DE, $DE
255
+ .charmap $DF, $DF
256
+ .charmap $E0, $E0
257
+ .charmap $E1, $E1
258
+ .charmap $E2, $E2
259
+ .charmap $E3, $E3
260
+ .charmap $E4, $E4
261
+ .charmap $E5, $E5
262
+ .charmap $E6, $E6
263
+ .charmap $E7, $E7
264
+ .charmap $E8, $E8
265
+ .charmap $E9, $E9
266
+ .charmap $EA, $EA
267
+ .charmap $EB, $EB
268
+ .charmap $EC, $EC
269
+ .charmap $ED, $ED
270
+ .charmap $EE, $EE
271
+ .charmap $EF, $EF
272
+ .charmap $F0, $F0
273
+ .charmap $F1, $F1
274
+ .charmap $F2, $F2
275
+ .charmap $F3, $F3
276
+ .charmap $F4, $F4
277
+ .charmap $F5, $F5
278
+ .charmap $F6, $F6
279
+ .charmap $F7, $F7
280
+ .charmap $F8, $F8
281
+ .charmap $F9, $F9
282
+ .charmap $FA, $FA
283
+ .charmap $FB, $FB
284
+ .charmap $FC, $FC
285
+ .charmap $FD, $FD
286
+ .charmap $FE, $FE
287
+ .charmap $FF, $FF