Initial commit.

This commit is contained in:
Bobbi Webber-Manners 2019-10-12 20:18:59 -04:00
parent 8696185cae
commit 6ddb24bc4d
12 changed files with 7060 additions and 2 deletions

BIN
5K_BASIC_(Software#2).pdf Normal file

Binary file not shown.

BIN
BASIC5.BIN#000000 Normal file

Binary file not shown.

3495
BASIC5.S#000000 Normal file

File diff suppressed because it is too large Load Diff

3551
BASIC5.S.ORIG#000000 Normal file

File diff suppressed because it is too large Load Diff

View File

@ -46,8 +46,11 @@ originally developed by the Mark Williams Company and which ran on PDP-11
under Coherent. This assembler has the advantage of small size, and is also under Coherent. This assembler has the advantage of small size, and is also
written in K&R C. written in K&R C.
`Z80as` generates Intel HEX files rather than BIN files, so I wrote a simple `Z80as` compiled 'out-of-the-box' under Aztec C on the Apple II, without any
converter called `HEX2BIN`. modification.
This assembler generates Intel HEX files rather than BIN files, so I wrote a
simple converter called `HEX2BIN`.
`Z80as` also builds and runs on Linux which allows larger files to be `Z80as` also builds and runs on Linux which allows larger files to be
assembled and is much faster than running on 6502 at 1Mhz. assembled and is much faster than running on 6502 at 1Mhz.
@ -90,6 +93,11 @@ There are two parts to the BDOS emulation:
This is one of the BASIC interpreters from the Processor Technologies SOL-20 This is one of the BASIC interpreters from the Processor Technologies SOL-20
system. The source code was provided as an example with z80as. system. The source code was provided as an example with z80as.
I assembled this code under `Z80as` on Linux, since it defines too many
symbols to assemble natively on the Apple II in the available memory. I plan
to take a look at the Aztec C build configuration to see if it is possible
to find more memory for dynamic allocation (ie: `malloc()`).
It is a 5K BASIC, so it is rather primitive. However it does have a floating It is a 5K BASIC, so it is rather primitive. However it does have a floating
point package and trig functions. point package and trig functions.

1
RUNBASIC5#040000 Normal file
View File

@ -0,0 +1 @@
bload /zapple2/softcard80.bin,A$FFD,Ttxt bload /zapple2/basic5.bin,A$1100,T$00 brun /zapple2/softcard65

1
RUNTESTSTUB#040000 Normal file
View File

@ -0,0 +1 @@
bload /zapple2/softcard80.bin,A$FFD,Ttxt brun /zapple2/softcard65

BIN
SOFTCARD65#069000 Normal file

Binary file not shown.

1
SOFTCARD65.S#040000 Normal file
View File

@ -0,0 +1 @@
╙╙╙╙╙╙╙╙╙╙╙╙╙╙╙╙╙╙╙╙╙╙╙╙╙╙╙╙╙╙╙╙╙╙╙╙╙╙╙╙╙╙╙╙╙╙╙╙╙╙╙█╙ ╤╣╟╡ ЦОДЕ ТО ИНЖОКЕ з╦╟ РОУТИНЕ ОН сОФТЦАРД АНД█╙ ХАНДЛЕ ЦАЛЛС ФРОМ з╦╟ БАЦК ТО ╤╣╟╡█╙ аССУМЕС сОФТЦАРД ИН СЛОТ ╢█╙ бОББИ ╡╟╠╧█╙╙╙╙╙╙╙╙╙╙╙╙╙╙╙╙╙╙╙╙╙╙╙╙╙╙╙╙╙╙╙╙╙╙╙╙╙╙╙╙╙╙╙╙╙╙╙╙╙╙╙██═орг═╓╧╟╟╟═╩ фОР НОВ ╜ ВИЛЛ МОЖЕ ТХИС ЛАТЕР██сфтцрд═еяу═╓ц╢╟╟═╩ сОФТЦАРД ИН СЛОТ ╢█цмд═еяу═╓╟╤═╩ зп АДДРЕСС ФОР ЦОММАНД ЦОДЕ ╗╟╛╠╛╡╘█арег═еяу═╓╟╥═╩ пАСС ╤╣╟╡ а РЕГ ТО╞ФРОМ з╦╟█ьрег═еяу═╓╟╦═╩ пАСС ╤╣╟╡ ь РЕГ ТО╞ФРОМ з╦╟█ырег═еяу═╓╟╧═╩ пАСС ╤╣╟╡ ы РЕГ ТО╞ФРОМ з╦╟█аддр═еяу═╓еб═╩ пАСС АДДРЕСС ОФ ╤╣╟╡ РОУТИНЕ ТО ЦАЛЛ ФРОМ з╦╟█аддрх═еяу═╓ец═╩ хИГХ БЫТЕ ОФ АДДРЕСС аддр█флагс═еяу═╓ед═╩ пАСС ╤╣╟╡ ФЛАГС ТО╞ФРОМ з╦╟█белл═еяу═╓фбдд═╩ сОУНД ТХЕ БЕЛЛ██старт█═ста═сфтцрд═╩ пАУСЕ з╦╟╛ РЕСУМЕ ╤╣╟╡█═йср═хандлр═╩ хАНДЛЕ ЦАЛЛС МАДЕ БЫ з╦╟ ЦОДЕ█═ймп═старт═╩ кЕЕП ОН КЕЕПИНГ ОН█доне█═брк══╩ дРОП ТО МОНИТОР██╙ хАНДЛЕ ЦАЛЛС МАДЕ БЫ з╦╟ ЦОДЕ█хандлр═лда═цмд█═цмп═ё╟═╩ цмд╫╟ МЕАНС ЦОНТИНУЕ РУННИНГ ╤╣╟╡ ЦОДЕ█═бне═╨цмд╠═╩█═пла══╩ цЛЕАН УП СТАЦК█═пла══╩ ╝╝╝█═ймп═доне═╩ цОНТИНУЕ МАИН ╤╣╟╡ РОУТИНЕ█╨цмд╠═цмп═ё╠═╩ цмд╫╠ МЕАНС ЦАЛЛ ╤╣╟╡ РОУТИНЕ ТХЕН РЕТУРН ТО з╦╟█═бне═╨цмд╡═╩█═лда═флагс═╩ лОАД ТХЕ ФЛАГС█═пха══╩ уСЕ СТАЦК ТО МОЖЕ а ТО СТАТУС█═плп══╩ ╝╝╝█═лда═арег═╩ лОАД ТХЕ РЕГИСТЕРС█═лдь═ьрег═╩ ╝╝╝█═лды═ырег═╩ ╝╝╝█═йср═╨доймп═╩ хАЦК ТО АЦХИЕЖЕ АН ИНДИРЕЦТ йср█═ста═арег═╩ сТОРЕ ТХЕ РЕГИСТЕРС█═сть═ьрег═╩ ╝╝╝█═сты═ырег═╩ ╝╝╝█═пхп══╩ мОЖЕ СТАТУС ТО а ЖИА ТХЕ СТАЦК█═пла══╩█═ста═флагс═╩ сТОРЕ ТХЕ ФЛАГС█═ртс══╩ вИЛЛ ГО БАЦК ТО з╦╟█╨цмд╡═цмп═ё╡═╩ цмд╫╡ МЕАНС ЦАЛЛ пРОдос мли ТХЕН РЕТУРН ТО з╦╟█═бне═╨цмдЁ═╩█═══╩ тодо пРОдос мли ЦАЛЛ СТУФФ█═ртс══╩ вИЛЛ ГО БАЦК ТО з╦╟█╨цмдЁ═цмп═ёЁ═╩ цмд╫Ё МЕАНС ПЕЕК АТ ТХЕ КЕЫБОАРД ТХЕН РЕТ ТО з╦╟█═бне═╨цмд╢═╩█═бит═╓ц╟╟╟═╩ пЕЕК АТ ТХЕ КЕЫБОАРД СТАТУС█═бми═╨цЁыес═╩ бРАНЦХ ИФ КЕЫСТРОКЕ АЖАИЛАБЛЕ█═лда═ё╟═╩ иФ НО ЦХАРС╛ РЕТУРН ╟ ИН арег█═ймп═╨цЁдоне═╩ ╝╝╝█╨цЁыес═лда═ё╠═╩ оТХЕРВИСЕ РЕТУРН ╠ ИН арег█╨цЁдоне═ста═арег═╩ сТОРЕ ТХЕ ЖАЛУЕ ФОР ТХЕ з╦╟█═ртс══╩ гО БАЦК ТО з╦╟█╨цмд╢═йср═белл═╩ бЕЕП ФОР ЕРРОР█═брк══╩ аНД ДРОП ИНТО МОНИТОР█╨доймп═ймп═╗аддр╘═╩█

1
SOFTCARD80.ASM#040000 Normal file

File diff suppressed because one or more lines are too long

BIN
SOFTCARD80.BIN#040000 Normal file

Binary file not shown.

BIN
zapple2.po Normal file

Binary file not shown.