From bf8377e95ce0b035b70aa588fdf002805e11761d Mon Sep 17 00:00:00 2001 From: Paul Robson Date: Mon, 19 Aug 2024 07:55:30 +0100 Subject: [PATCH 1/2] Removed old C examples and added link document --- examples/C/build_hello_c.sh | 34 --- examples/C/crt0.s | 64 ------ examples/C/hello.c | 36 ---- examples/C/hello.map | 222 -------------------- examples/C/hello.neo | Bin 1190 -> 0 bytes examples/C/neo6502.cfg | 37 ---- examples/C/neo6502.h | 72 ------- examples/C/neo6502.lib | Bin 1003 -> 0 bytes examples/c/README | 3 + examples/c/old-c.zip | Bin 0 -> 7230 bytes examples/semi-working-cc65/a.sh | 7 - examples/semi-working-cc65/b.sh | 8 - examples/semi-working-cc65/crt0.s | 56 ----- examples/semi-working-cc65/main.c | 39 ---- examples/semi-working-cc65/main.map | 183 ---------------- examples/semi-working-cc65/main2 | Bin 710 -> 0 bytes examples/semi-working-cc65/neo6502.cfg | 37 ---- examples/semi-working-cc65/neo6502.lib | Bin 998 -> 0 bytes examples/semi-working-cc65/storage/.gitkeep | 1 - 19 files changed, 3 insertions(+), 796 deletions(-) delete mode 100755 examples/C/build_hello_c.sh delete mode 100644 examples/C/crt0.s delete mode 100644 examples/C/hello.c delete mode 100644 examples/C/hello.map delete mode 100644 examples/C/hello.neo delete mode 100644 examples/C/neo6502.cfg delete mode 100644 examples/C/neo6502.h delete mode 100644 examples/C/neo6502.lib create mode 100644 examples/c/README create mode 100644 examples/c/old-c.zip delete mode 100644 examples/semi-working-cc65/a.sh delete mode 100644 examples/semi-working-cc65/b.sh delete mode 100644 examples/semi-working-cc65/crt0.s delete mode 100644 examples/semi-working-cc65/main.c delete mode 100644 examples/semi-working-cc65/main.map delete mode 100644 examples/semi-working-cc65/main2 delete mode 100644 examples/semi-working-cc65/neo6502.cfg delete mode 100644 examples/semi-working-cc65/neo6502.lib delete mode 100644 examples/semi-working-cc65/storage/.gitkeep diff --git a/examples/C/build_hello_c.sh b/examples/C/build_hello_c.sh deleted file mode 100755 index 3440a8263..000000000 --- a/examples/C/build_hello_c.sh +++ /dev/null @@ -1,34 +0,0 @@ -#!/bin/sh - -# Hello World C example for the Neo6502 (build script) -# -# requires 'cc65' compiler suite - - -# cc65 search paths -readonly _CC65_HOME="${CC65_HOME:-/usr/share/cc65}" - - -# environment checks -for prog in ar65 ca65 cl65 -do which $prog > /dev/null || ! echo "could not find '$prog' program" || exit 1 -done -for inc in "$_CC65_HOME"/{include/{stdio.h,stdint.h},asminc/zeropage.inc} -do dir=$(dirname "$inc") - test -d "$dir" || ! echo "CC65 include directory '$dir' does not exist" || exit 1 - test -f "$inc" || ! echo "CC65 include file '$inc' does not exist" || exit 1 -done - - -# cleanup -rm -f *.o hello.neo hello.map neo6502.lib{,.temp} - -# compile -export CC65_HOME="$_CC65_HOME" -ca65 crt0.s -ar65 a neo6502.lib crt0.o -cl65 --static-locals -t none -C neo6502.cfg -O --cpu 65c02 -m hello.map \ - -o hello.neo hello.c neo6502.lib - -# launch emulator -test -f hello.neo && ../../bin/neo hello.neo@800 cold diff --git a/examples/C/crt0.s b/examples/C/crt0.s deleted file mode 100644 index 3526563e2..000000000 --- a/examples/C/crt0.s +++ /dev/null @@ -1,64 +0,0 @@ -; --------------------------------------------------------------------------- -; crt0.s for CC65->Neo6502 -; --------------------------------------------------------------------------- - -.export _init , _exit -.import _main - -.export __STARTUP__ : absolute = 1 ; Mark as startup -.import __RAM_START__ , __RAM_SIZE__ ; Linker generated -.import __STACKSIZE__ - -.import copydata , zerobss , initlib , donelib - - -.include "zeropage.inc" - - -; --------------------------------------------------------------------------- -; Place the startup code in a special segment - -.segment "STARTUP" - - - ; --------------------------------------------------------------------------- - ; A little light 6502 housekeeping - -_init: - ldx #$FF ; Initialize stack pointer to $01FF - txs - cld ; Clear decimal mode - - - ; --------------------------------------------------------------------------- - ; Set cc65 argument stack pointer - - lda #<(__RAM_START__ + __RAM_SIZE__ + __STACKSIZE__) - ldx #>(__RAM_START__ + __RAM_SIZE__ + __STACKSIZE__) - sta sp - stx sp+1 - - - ; --------------------------------------------------------------------------- - ; Initialize memory storage - - jsr zerobss ; Clear BSS segment - jsr copydata ; initialise data segment - jsr initlib ; Run constructors - - - ; --------------------------------------------------------------------------- - ; Call main() - - jsr _main - - - ; --------------------------------------------------------------------------- - ; Back from main (this is also the _exit entry): - -_exit: - jsr donelib ; Run destructors - -_endx: - jmp _endx - jmp ($FFFC) ; Reboot diff --git a/examples/C/hello.c b/examples/C/hello.c deleted file mode 100644 index 807731e0d..000000000 --- a/examples/C/hello.c +++ /dev/null @@ -1,36 +0,0 @@ -/*\ -|*| Hello World C example for the Neo6502 -|*| SPDX-License-Identifier: CC0-1.0 -|*| -|*| This is a very basic C program, -|*| which sounds a beep and displays some text at a precise screen location. -|*| Refer to api.pdf for more API functions. -|*| -|*| To compile and run: -|*| $ export CC65_HOME=/usr/share/cc65 -|*| $ ca65 crt0.s -|*| $ ar65 a neo6502.lib crt0.o -|*| $ cl65 --static-locals -t none -C neo6502.cfg -O --cpu 65c02 -m hello.map \ -|*| -o hello.neo hello.c neo6502.lib -|*| $ ../../bin/neo hello.neo@800 cold -\*/ - - -// CC65 C libs -#include -#include - -// Neo6502 Kernel API convenience macros -#include "neo6502.h" - - -int main() -{ - SoundEffect(API_SOUND_CH_00 , API_SFX_COIN) ; - - SetCursorPosition(0 , 22) ; - puts(" Hello world!") ; - puts(" ") ; // 53 blanks - - return 0 ; -} diff --git a/examples/C/hello.map b/examples/C/hello.map deleted file mode 100644 index 93bf5a3a2..000000000 --- a/examples/C/hello.map +++ /dev/null @@ -1,222 +0,0 @@ -Modules list: -------------- -hello.o: - CODE Offs=000000 Size=00020B Align=00001 Fill=0000 - RODATA Offs=000000 Size=000093 Align=00001 Fill=0000 - BSS Offs=000000 Size=000022 Align=00001 Fill=0000 - DATA Offs=000000 Size=00000D Align=00001 Fill=0000 -neo6502.lib(crt0.o): - STARTUP Offs=000000 Size=000021 Align=00001 Fill=0000 -/usr/share/cc65/lib/none.lib(_file.o): - DATA Offs=00000D Size=00001E Align=00001 Fill=0000 -/usr/share/cc65/lib/none.lib(addysp.o): - CODE Offs=00020B Size=00000E Align=00001 Fill=0000 -/usr/share/cc65/lib/none.lib(condes.o): - CODE Offs=000219 Size=00000C Align=00001 Fill=0000 - DATA Offs=00002B Size=000025 Align=00001 Fill=0000 - ONCE Offs=000000 Size=00000C Align=00001 Fill=0000 -/usr/share/cc65/lib/none.lib(copydata.o): - CODE Offs=000225 Size=00002D Align=00001 Fill=0000 -/usr/share/cc65/lib/none.lib(decax1.o): - CODE Offs=000252 Size=000007 Align=00001 Fill=0000 -/usr/share/cc65/lib/none.lib(decaxy.o): - CODE Offs=000259 Size=000009 Align=00001 Fill=0000 -/usr/share/cc65/lib/none.lib(incsp2.o): - CODE Offs=000262 Size=000016 Align=00001 Fill=0000 -/usr/share/cc65/lib/none.lib(incsp6.o): - CODE Offs=000278 Size=000005 Align=00001 Fill=0000 -/usr/share/cc65/lib/none.lib(ldaxsp.o): - CODE Offs=00027D Size=000009 Align=00001 Fill=0000 -/usr/share/cc65/lib/none.lib(pusha.o): - CODE Offs=000286 Size=000016 Align=00001 Fill=0000 -/usr/share/cc65/lib/none.lib(pushax.o): - CODE Offs=00029C Size=00001A Align=00001 Fill=0000 -/usr/share/cc65/lib/none.lib(pushwsp.o): - CODE Offs=0002B6 Size=00001C Align=00001 Fill=0000 -/usr/share/cc65/lib/none.lib(puts.o): - CODE Offs=0002D2 Size=000069 Align=00001 Fill=0000 - DATA Offs=000050 Size=000001 Align=00001 Fill=0000 -/usr/share/cc65/lib/none.lib(staspidx.o): - CODE Offs=00033B Size=000016 Align=00001 Fill=0000 -/usr/share/cc65/lib/none.lib(staxsp.o): - CODE Offs=000351 Size=00000B Align=00001 Fill=0000 -/usr/share/cc65/lib/none.lib(strlen.o): - CODE Offs=00035C Size=000016 Align=00001 Fill=0000 -/usr/share/cc65/lib/none.lib(zerobss.o): - CODE Offs=000372 Size=000023 Align=00001 Fill=0000 -/usr/share/cc65/lib/none.lib(zeropage.o): - ZEROPAGE Offs=000000 Size=00001A Align=00001 Fill=0000 - - -Segment list: -------------- -Name Start End Size Align ----------------------------------------------------- -ZEROPAGE 000000 000019 00001A 00001 -STARTUP 000800 000820 000021 00001 -ONCE 000821 00082C 00000C 00001 -CODE 00082D 000BC1 000395 00001 -RODATA 000BC2 000C54 000093 00001 -DATA 000C55 000CA5 000051 00001 -BSS 000CA6 000CC7 000022 00001 - - -Exports list by name: ---------------------- -__BSS_RUN__ 000CA6 RLA __BSS_SIZE__ 000022 REA -__CONSTRUCTOR_COUNT__ 000000 REA __CONSTRUCTOR_TABLE__ 00082D RLA -__DATA_LOAD__ 000C55 RLA __DATA_RUN__ 000C55 RLA -__DATA_SIZE__ 000051 REA __DESTRUCTOR_COUNT__ 000000 REA -__DESTRUCTOR_TABLE__ 000C55 RLA __RAM_SIZE__ 00EE00 REA -__RAM_START__ 000800 RLA __STACKSIZE__ 000400 REA -__STARTUP__ 000001 REA _main 000A0D RLA -_puts 000AFF RLA _stdout 000C7C RLA -_strlen 000B89 RLA _write 0008B5 RLA -addysp 000A39 RLA copydata 000A52 RLA -decax1 000A7F RLA decaxy 000A86 RLA -donelib 000A46 RLA incsp2 000A97 RLA -incsp6 000AA5 RLA initlib 000821 RLA -ldax0sp 000AAA RLA ldaxysp 000AAC RLA -ptr1 000008 RLZ ptr2 00000A RLZ -pusha 000AB7 RLA pusha0 000ACB RLA -pushax 000ACD RLA pushwysp 000AE5 RLA -regsave 000004 RLZ sp 000000 RLZ -staspidx 000B68 RLA stax0sp 000B7E RLA -staxysp 000B80 RLA tmp1 000010 RLZ -zerobss 000B9F RLA - - -Exports list by value: ----------------------- -__CONSTRUCTOR_COUNT__ 000000 REA __DESTRUCTOR_COUNT__ 000000 REA -sp 000000 RLZ __STARTUP__ 000001 REA -regsave 000004 RLZ ptr1 000008 RLZ -ptr2 00000A RLZ tmp1 000010 RLZ -__BSS_SIZE__ 000022 REA __DATA_SIZE__ 000051 REA -__STACKSIZE__ 000400 REA __RAM_START__ 000800 RLA -initlib 000821 RLA __CONSTRUCTOR_TABLE__ 00082D RLA -_write 0008B5 RLA _main 000A0D RLA -addysp 000A39 RLA donelib 000A46 RLA -copydata 000A52 RLA decax1 000A7F RLA -decaxy 000A86 RLA incsp2 000A97 RLA -incsp6 000AA5 RLA ldax0sp 000AAA RLA -ldaxysp 000AAC RLA pusha 000AB7 RLA -pusha0 000ACB RLA pushax 000ACD RLA -pushwysp 000AE5 RLA _puts 000AFF RLA -staspidx 000B68 RLA stax0sp 000B7E RLA -staxysp 000B80 RLA _strlen 000B89 RLA -zerobss 000B9F RLA __DATA_LOAD__ 000C55 RLA -__DATA_RUN__ 000C55 RLA __DESTRUCTOR_TABLE__ 000C55 RLA -_stdout 000C7C RLA __BSS_RUN__ 000CA6 RLA -__RAM_SIZE__ 00EE00 REA - - -Imports list: -------------- -__BSS_RUN__ ([linker generated]): - zerobss.o common/zerobss.s(8) -__BSS_SIZE__ ([linker generated]): - zerobss.o common/zerobss.s(8) -__CONSTRUCTOR_COUNT__ ([linker generated]): - condes.o runtime/condes.s(18) -__CONSTRUCTOR_TABLE__ ([linker generated]): - condes.o runtime/condes.s(18) -__DATA_LOAD__ ([linker generated]): - copydata.o common/copydata.s(8) -__DATA_RUN__ ([linker generated]): - copydata.o common/copydata.s(8) -__DATA_SIZE__ ([linker generated]): - copydata.o common/copydata.s(8) -__DESTRUCTOR_COUNT__ ([linker generated]): - condes.o runtime/condes.s(19) -__DESTRUCTOR_TABLE__ ([linker generated]): - condes.o runtime/condes.s(19) -__RAM_SIZE__ ([linker generated]): - crt0.o crt0.s(9) -__RAM_START__ ([linker generated]): - crt0.o crt0.s(9) -__STACKSIZE__ ([linker generated]): - crt0.o crt0.s(10) -__STARTUP__ (crt0.o): - hello.o hello.s(13) -_main (hello.o): - crt0.o crt0.s(6) -_puts (puts.o): - hello.o hello.s(14) -_stdout (_file.o): - puts.o ../libwrk/none/puts.s(13) -_strlen (strlen.o): - puts.o ../libwrk/none/puts.s(15) -_write (hello.o): - puts.o ../libwrk/none/puts.s(16) -addysp (addysp.o): - incsp6.o runtime/incsp6.s(8) -copydata (copydata.o): - crt0.o crt0.s(12) -decax1 (decax1.o): - hello.o hello.s(363) -decaxy (decaxy.o): - hello.o hello.s(363) -donelib (condes.o): - crt0.o crt0.s(12) -incsp2 (incsp2.o): - staspidx.o runtime/staspidx.s(8) - puts.o ../libwrk/none/puts.s(80) - hello.o hello.s(363) - hello.o hello.s(363) -incsp6 (incsp6.o): - hello.o hello.s(363) -initlib (condes.o): - crt0.o crt0.s(12) -ldax0sp (ldaxsp.o): - hello.o hello.s(363) -ldaxysp (ldaxsp.o): - puts.o ../libwrk/none/puts.s(80) - hello.o hello.s(363) -ptr1 (zeropage.o): - zerobss.o common/zerobss.s(9) - staspidx.o runtime/staspidx.s(9) - puts.o ../libwrk/none/puts.s(11) - copydata.o common/copydata.s(9) - hello.o hello.s(11) -ptr2 (zeropage.o): - strlen.o common/strlen.s(12) - copydata.o common/copydata.s(9) -pusha (pusha.o): - hello.o hello.s(363) - hello.o hello.s(363) - hello.o hello.s(363) - hello.o hello.s(363) -pusha0 (pushax.o): - puts.o ../libwrk/none/puts.s(80) -pushax (pushax.o): - puts.o ../libwrk/none/puts.s(80) - hello.o hello.s(363) -pushwysp (pushwsp.o): - puts.o ../libwrk/none/puts.s(80) -regsave (zeropage.o): - hello.o hello.s(10) -sp (zeropage.o): - pushwsp.o runtime/pushwsp.s(8) - addysp.o runtime/addysp.s(8) - staxsp.o runtime/staxsp.s(8) - staspidx.o runtime/staspidx.s(9) - pushax.o runtime/pushax.s(8) - pusha.o runtime/pusha.s(8) - ldaxsp.o runtime/ldaxsp.s(8) - incsp2.o runtime/incsp2.s(8) - crt0.o /usr/share/cc65/asminc/zeropage.inc(11) - hello.o hello.s(10) -staspidx (staspidx.o): - hello.o hello.s(363) -stax0sp (staxsp.o): - hello.o hello.s(363) -staxysp (staxsp.o): - hello.o hello.s(363) -tmp1 (zeropage.o): - staspidx.o runtime/staspidx.s(9) - decaxy.o runtime/decaxy.s(8) - copydata.o common/copydata.s(9) -zerobss (zerobss.o): - crt0.o crt0.s(12) - diff --git a/examples/C/hello.neo b/examples/C/hello.neo deleted file mode 100644 index bd54b794819586d294d1b6af4a847ddae42ff353..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1190 zcmbVLOK1~882%?s+R5w`a?+xpQ*Rz}l?o!Q8p$DOX^q(f;2+J5X?f`vP*@W ztAI2#nt|Ae$Y>39;TpXJmPDQlg_u|6sb7&2hCF7krDT?Bx?wjI_7uNM=63&9WMsvy zFA^OLR4Zu|ry}HCSBUc1>&{@^k@4WLPY$4Z#c(Q~^2IXpF;x2q%0{_LQi?7n%99E% zS)XmCY<(K%hLA<|FkwcA3dxAnSKGT_t-RP(@kno#v;SD|2TU*;k0;nrVjzB@75w{; z1q0my)*U<=4jp0#0xaCw8R+sK?C1{c^NaMQSadMT24jiK@e8ak%HoNk=z#xxWH2hy z;2_8CxEhF7g4#gje4FtGO{+fK8{4=>A|4RObyg*5r_=tL4q5KOm{on`X>_UizZ{H6O zWr4eYkF8JP=&O^D)-S&z)5U(O5x_KXNrRU(bV?yBM+;uk4G`V z(#sMJ(2cj4Zc@Mq6P?TXWWmpCAui#8LYOJcG{ki&mI$vUnF16r$D}e1GcB-O<$nCK z(8-kMwNVxxBivvb1KD&MlPNcD8uN47#&l}xnl_;=+YQY!t@)XUlYZT<+6}*M?XXr1 zyBgBpDZWDQS}pJN4Lq*YwK1dQ zjt^*t>C{|T<9%qQnp3tMX>n~SE9cghGKGxqc0MmL1U9p|we`$$R=QtYT~#hl3B!A* cbkuuieCir@)7RWO^BRrm{ZEVMdQ5-8f8;>1SO5S3 diff --git a/examples/c/README b/examples/c/README new file mode 100644 index 000000000..a526ffaf1 --- /dev/null +++ b/examples/c/README @@ -0,0 +1,3 @@ +There are now much better documentation on how to use C on the Neo6502, at www.neo6502.com under the Programming heading. + +The original code here is in the zip file. diff --git a/examples/c/old-c.zip b/examples/c/old-c.zip new file mode 100644 index 0000000000000000000000000000000000000000..c40e22ab308ed46afa15fa4a10c88a4eadef8002 GIT binary patch literal 7230 zcma)hWmFv7x^1IrAc4jqxVr|2;O_439ozy54h;#?cz{44!QI`0L+~a*;}YB&V6sc{iAABjjA!nTD9gk*R1)eDz!kZu<`Mw_NJIhvKmbyJ zr5D)I+RWa@(b2`sirvFrM;i@*G!Cz`MUd^X_42_0ARuo)zWV3MOKbiW2^YwJT2C2H zuNvt+%{G%Hso05k@_mzwBaBkXs-n<&icV$sYFRiT(Fa_p|C(-OSkR7LSa6Sj@WRd9 z5plY(F4Tyy7Q(xN#BWODXcELj=_l7<$S&H^OV8r|o|^G9`z!3)#e9P$xVvhfu1 z!W8@zRHOI}{WX`kG2(@}@&yyA-$s|ppLHIH8>|GsN9N#YGvwX@1Ykw#7fh|aIKw&eO|J_tU=TpU z3k{WRR2DQyF)t~F7O)0k!on|BXImJi=dKq!N7NwDn1l#b}T{(#t3BL-17 z9m{ut#gKLiiRnmi$R_mf(Y$Vk&&(#->f!)9R|J*ifsvZ?rSbFo2Ap9lCR^r=Qd0(g zv&4s;*oEQ`qT>OHe)%F;HoLs z&Y_jl)J7y!0uQcvr5(LtOK}Cq#JWlnxJzmAaEdx>*w+#1XmC`(NKKxER3dMIb7hLq zXT-6wti88y2i3eKvlmlhqfqe0l`aU?elKB~TXPVKzdgOQ~g?ih0v4>xy zucAL|It_fGl#vw}j9nF=|5fE3jk&2j-C``z$>1M1?%-f>a;(&3%QPLSAL$n~I7rX1 zGAInsrgUjuRog1FjGorCMsCQ;6vFKFq4d@+z`f~fm zBk6ln!j+CA=`Fw_heXLJ+pw5AQgYdD-*}U)+=T!m=B+I*QZhxbO1(^3p8EoIf!m8r zR)YOQ!=VR*k2E4&2?-F1QEiq@L#`VPH$&`LaX$YbP8r-mA4G0+W90I7Ox3N!3(v!l z03NgMuc)yP6#an4Aqjhf#th^4*BVyL#kI3;l1@IQ{>|-h(u*Ik*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VlT$w3UE-#z?S0~AjjEdP^iRd8{;&M>}u$iZTQsuSIt;!4ezpcYC4HmziP7b zo6>7&VA!lQX-E>?Y9kaJf}ep?zlK;pLCx30wz1{7;O?WAsm>hdn|wqer8{HpLT&Vp zQPhRnx19F@P`zKvMAc%ON(1s3yA{V|D>!M@+L|$SU*r{(Kqk*?p?`?@5p&F}-4L@v zCnJzc+o=>HiQf?<2By{6jLQC%{?oU$n>ssRH%-N)^xM=(vo4eBJ3@_6oSo?`cb`|xtOV+T8>M$eAL<3fLeNh?__>CdYx2U!^tH{|ymFeqPfp;)` zA53FM@&a5TwIGa1k8sV?jXnDwAhuVikgd3%+`l3mh z8LKzgO}v<%Wb&FSF3PuHAAR`=^Hs9bR7hHrn&CK`a4Fa*%<-%G!enh>{zlEEVN<@$ z-0Ylcc@tz~qoquluXt3#pkhaJ(X)hZEV1w)Qzv0iXI`3OROEai`cmF|B-(=^Ktq1L?WZCL)+;GBh{P4tmg0mP}!(z>D zzP7iB9RDzMubIc`Xo*1nrIhB8SvPx$bUTkh?g~GB&1bj{^b3}UYG43$A5Jt=u{=p5xGDum-ugj z@UYL2mU_DbzSLU@S7yW?CWTZq>`6)j(WsQNWPyp)(`hWFTh#qGF06f|rz(MdISO2@)g7U9!%YV)3zfpe=-T#A{ z8!YiC6#tIk{~6Zr!RueKA|Acj|HQEW4D9z9?yq3q9>ckRf&CfE{WG}V|C{~=_s4h3 z4YqyuZ@54IqW&4&@22ywqw@g)ez&0i4Dfd&^H)GGoc{nm+M0g`_q)>nb-FqD|AG5c s_y7NZ|GRqrI=(NDH~+4sN38!#9jPm!JTBQE1`Q1`_{b_#;y>>G4`;WTHvj+t literal 0 HcmV?d00001 diff --git a/examples/semi-working-cc65/a.sh b/examples/semi-working-cc65/a.sh deleted file mode 100644 index c54726f82..000000000 --- a/examples/semi-working-cc65/a.sh +++ /dev/null @@ -1,7 +0,0 @@ -rm *.o main2 -ca65 crt0.s -ar65 a neo6502.lib crt0.o -cl65 --static-locals -C neo6502.cfg -t none -O --cpu 65c02 -o main2 -m main.map main.c neo6502.lib -../../bin/neo main2@800 cold -# Works !! - diff --git a/examples/semi-working-cc65/b.sh b/examples/semi-working-cc65/b.sh deleted file mode 100644 index 924d29749..000000000 --- a/examples/semi-working-cc65/b.sh +++ /dev/null @@ -1,8 +0,0 @@ -rm *.o main -ca65 crt0.s -ar65 a neo6502.lib crt0.o -cc65 --static-locals -t none -O --cpu 65c02 main.c -ca65 --cpu 65c02 main.s -o main.o -ld65 -C neo6502.cfg --lib neo6502.lib --lib none.lib -o main main.o -../../bin/neo main@800 cold - diff --git a/examples/semi-working-cc65/crt0.s b/examples/semi-working-cc65/crt0.s deleted file mode 100644 index 417731dc0..000000000 --- a/examples/semi-working-cc65/crt0.s +++ /dev/null @@ -1,56 +0,0 @@ -; --------------------------------------------------------------------------- -; crt0.s -; --------------------------------------------------------------------------- - -.export _init, _exit -.import _main - -.export __STARTUP__ : absolute = 1 ; Mark as startup -.import __RAM_START__, __RAM_SIZE__ ; Linker generated -.import __STACKSIZE__ - -.import copydata,zerobss, initlib, donelib - -.include "zeropage.inc" - -; --------------------------------------------------------------------------- -; Place the startup code in a special segment - -.segment "STARTUP" - -; --------------------------------------------------------------------------- -; A little light 6502 housekeeping - -_init: - ldx #$FF ; Initialize stack pointer to $01FF - txs - cld ; Clear decimal mode - -; --------------------------------------------------------------------------- -; Set cc65 argument stack pointer - - lda #<(__RAM_START__ + __RAM_SIZE__ + __STACKSIZE__) - ldx #>(__RAM_START__ + __RAM_SIZE__ + __STACKSIZE__) - sta sp - stx sp+1 - -; --------------------------------------------------------------------------- -; Initialize memory storage - - jsr zerobss ; Clear BSS segment - jsr copydata ; initialise data segment - jsr initlib ; Run constructors - -; --------------------------------------------------------------------------- -; Call main() - - jsr _main - -; --------------------------------------------------------------------------- -; Back from main (this is also the _exit entry): - -_exit: jsr donelib ; Run destructors - -_endx: - jmp _endx - jmp ($FFFC) ; Reboot WozMon diff --git a/examples/semi-working-cc65/main.c b/examples/semi-working-cc65/main.c deleted file mode 100644 index 9b9f76407..000000000 --- a/examples/semi-working-cc65/main.c +++ /dev/null @@ -1,39 +0,0 @@ -#include -#include - -unsigned char *cmd = (unsigned char *)0xFF00; - -int write (unsigned char* buf, unsigned count) { - while (count--) { - while(cmd[0]) {} - cmd[1] = 0; - cmd[4] = *buf++; - cmd[0] = 2; - } - return 0; -} - -void drawLine(int x1,int y1,int x2,int y2) { - while(cmd[0]) {} // Waits for the previous command to finish. - cmd[4] = x1 & 0xFF; // P0P1 - cmd[5] = x1 >> 8; - cmd[6] = y1 & 0xFF; // P2P3 - cmd[7] = y1 >> 8; - cmd[8] = x2 & 0xFF; // P4P5 - cmd[9] = x2 >> 8; - cmd[10] = y2 & 0xFF; // P6P7 - cmd[11] = y2 >> 8; - - cmd[1] = 2; // Command 2, draw line - cmd[0] = 5; // In group 5 - this write triggers the action. - while(cmd[0]) {} // Wait for the command to finish (not strictly required) -} - -int main() { - unsigned char cr[2]; - write("Hello world\n",12); - write("Hello world2\r",13); - write("Hello world3\r",13); - drawLine(10,10,100,100); - return 0; -} \ No newline at end of file diff --git a/examples/semi-working-cc65/main.map b/examples/semi-working-cc65/main.map deleted file mode 100644 index 0dc73fd77..000000000 --- a/examples/semi-working-cc65/main.map +++ /dev/null @@ -1,183 +0,0 @@ -Modules list: -------------- -main.o: - CODE Offs=000000 Size=000174 Align=00001 Fill=0000 - RODATA Offs=000000 Size=000029 Align=00001 Fill=0000 - BSS Offs=000000 Size=000002 Align=00001 Fill=0000 - DATA Offs=000000 Size=000002 Align=00001 Fill=0000 -neo6502.lib(crt0.o): - STARTUP Offs=000000 Size=000021 Align=00001 Fill=0000 -/usr/share/cc65/lib/none.lib(addysp.o): - CODE Offs=000174 Size=00000E Align=00001 Fill=0000 -/usr/share/cc65/lib/none.lib(condes.o): - CODE Offs=000182 Size=00000C Align=00001 Fill=0000 - DATA Offs=000002 Size=000025 Align=00001 Fill=0000 - ONCE Offs=000000 Size=00000C Align=00001 Fill=0000 -/usr/share/cc65/lib/none.lib(copydata.o): - CODE Offs=00018E Size=00002D Align=00001 Fill=0000 -/usr/share/cc65/lib/none.lib(decax1.o): - CODE Offs=0001BB Size=000007 Align=00001 Fill=0000 -/usr/share/cc65/lib/none.lib(incsp2.o): - CODE Offs=0001C2 Size=000016 Align=00001 Fill=0000 -/usr/share/cc65/lib/none.lib(incsp4.o): - CODE Offs=0001D8 Size=000005 Align=00001 Fill=0000 -/usr/share/cc65/lib/none.lib(incsp8.o): - CODE Offs=0001DD Size=000005 Align=00001 Fill=0000 -/usr/share/cc65/lib/none.lib(ldaxsp.o): - CODE Offs=0001E2 Size=000009 Align=00001 Fill=0000 -/usr/share/cc65/lib/none.lib(pushax.o): - CODE Offs=0001EB Size=00001A Align=00001 Fill=0000 -/usr/share/cc65/lib/none.lib(staspidx.o): - CODE Offs=000205 Size=000016 Align=00001 Fill=0000 -/usr/share/cc65/lib/none.lib(staxsp.o): - CODE Offs=00021B Size=00000B Align=00001 Fill=0000 -/usr/share/cc65/lib/none.lib(zerobss.o): - CODE Offs=000226 Size=000023 Align=00001 Fill=0000 -/usr/share/cc65/lib/none.lib(zeropage.o): - ZEROPAGE Offs=000000 Size=00001A Align=00001 Fill=0000 - - -Segment list: -------------- -Name Start End Size Align ----------------------------------------------------- -ZEROPAGE 000000 000019 00001A 00001 -STARTUP 000800 000820 000021 00001 -ONCE 000821 00082C 00000C 00001 -CODE 00082D 000A75 000249 00001 -RODATA 000A76 000A9E 000029 00001 -DATA 000A9F 000AC5 000027 00001 -BSS 000AC6 000AC7 000002 00001 - - -Exports list by name: ---------------------- -__BSS_RUN__ 000AC6 RLA __BSS_SIZE__ 000002 REA -__CONSTRUCTOR_COUNT__ 000000 REA __CONSTRUCTOR_TABLE__ 00082D RLA -__DATA_LOAD__ 000A9F RLA __DATA_RUN__ 000A9F RLA -__DATA_SIZE__ 000027 REA __DESTRUCTOR_COUNT__ 000000 REA -__DESTRUCTOR_TABLE__ 000A9F RLA __RAM_SIZE__ 00EE00 REA -__RAM_START__ 000800 RLA __STACKSIZE__ 000400 REA -__STARTUP__ 000001 REA _main 000963 RLA -addysp 0009A2 RLA copydata 0009BB RLA -decax1 0009E8 RLA donelib 0009AF RLA -incsp2 0009F7 RLA incsp4 000A05 RLA -incsp8 000A0A RLA initlib 000821 RLA -ldax0sp 000A0F RLA ldaxysp 000A11 RLA -ptr1 000008 RLZ ptr2 00000A RLZ -pusha0 000A1A RLA pushax 000A1C RLA -regsave 000004 RLZ sp 000000 RLZ -staspidx 000A32 RLA stax0sp 000A48 RLA -staxysp 000A4A RLA tmp1 000010 RLZ -zerobss 000A53 RLA - - -Exports list by value: ----------------------- -__CONSTRUCTOR_COUNT__ 000000 REA __DESTRUCTOR_COUNT__ 000000 REA -sp 000000 RLZ __STARTUP__ 000001 REA -__BSS_SIZE__ 000002 REA regsave 000004 RLZ -ptr1 000008 RLZ ptr2 00000A RLZ -tmp1 000010 RLZ __DATA_SIZE__ 000027 REA -__STACKSIZE__ 000400 REA __RAM_START__ 000800 RLA -initlib 000821 RLA __CONSTRUCTOR_TABLE__ 00082D RLA -_main 000963 RLA addysp 0009A2 RLA -donelib 0009AF RLA copydata 0009BB RLA -decax1 0009E8 RLA incsp2 0009F7 RLA -incsp4 000A05 RLA incsp8 000A0A RLA -ldax0sp 000A0F RLA ldaxysp 000A11 RLA -pusha0 000A1A RLA pushax 000A1C RLA -staspidx 000A32 RLA stax0sp 000A48 RLA -staxysp 000A4A RLA zerobss 000A53 RLA -__DATA_LOAD__ 000A9F RLA __DATA_RUN__ 000A9F RLA -__DESTRUCTOR_TABLE__ 000A9F RLA __BSS_RUN__ 000AC6 RLA -__RAM_SIZE__ 00EE00 REA - - -Imports list: -------------- -__BSS_RUN__ ([linker generated]): - zerobss.o common/zerobss.s(8) -__BSS_SIZE__ ([linker generated]): - zerobss.o common/zerobss.s(8) -__CONSTRUCTOR_COUNT__ ([linker generated]): - condes.o runtime/condes.s(18) -__CONSTRUCTOR_TABLE__ ([linker generated]): - condes.o runtime/condes.s(18) -__DATA_LOAD__ ([linker generated]): - copydata.o common/copydata.s(8) -__DATA_RUN__ ([linker generated]): - copydata.o common/copydata.s(8) -__DATA_SIZE__ ([linker generated]): - copydata.o common/copydata.s(8) -__DESTRUCTOR_COUNT__ ([linker generated]): - condes.o runtime/condes.s(19) -__DESTRUCTOR_TABLE__ ([linker generated]): - condes.o runtime/condes.s(19) -__RAM_SIZE__ ([linker generated]): - crt0.o crt0.s(9) -__RAM_START__ ([linker generated]): - crt0.o crt0.s(9) -__STACKSIZE__ ([linker generated]): - crt0.o crt0.s(10) -__STARTUP__ (crt0.o): - main.o main.s(13) -_main (main.o): - crt0.o crt0.s(6) -addysp (addysp.o): - incsp8.o runtime/incsp8.s(8) - incsp4.o runtime/incsp4.s(8) -copydata (copydata.o): - crt0.o crt0.s(12) -decax1 (decax1.o): - main.o main.s(240) -donelib (condes.o): - crt0.o crt0.s(12) -incsp2 (incsp2.o): - staspidx.o runtime/staspidx.s(8) -incsp4 (incsp4.o): - main.o main.s(240) -incsp8 (incsp8.o): - main.o main.s(240) -initlib (condes.o): - crt0.o crt0.s(12) -ldax0sp (ldaxsp.o): - main.o main.s(240) -ldaxysp (ldaxsp.o): - main.o main.s(240) -ptr1 (zeropage.o): - zerobss.o common/zerobss.s(9) - staspidx.o runtime/staspidx.s(9) - copydata.o common/copydata.s(9) - main.o main.s(11) -ptr2 (zeropage.o): - copydata.o common/copydata.s(9) -pusha0 (pushax.o): - main.o main.s(240) -pushax (pushax.o): - main.o main.s(240) - main.o main.s(240) - main.o main.s(240) -regsave (zeropage.o): - main.o main.s(10) -sp (zeropage.o): - incsp2.o runtime/incsp2.s(8) - addysp.o runtime/addysp.s(8) - staxsp.o runtime/staxsp.s(8) - staspidx.o runtime/staspidx.s(9) - pushax.o runtime/pushax.s(8) - ldaxsp.o runtime/ldaxsp.s(8) - crt0.o /usr/share/cc65/asminc/zeropage.inc(11) - main.o main.s(10) -staspidx (staspidx.o): - main.o main.s(240) -stax0sp (staxsp.o): - main.o main.s(240) -staxysp (staxsp.o): - main.o main.s(240) -tmp1 (zeropage.o): - staspidx.o runtime/staspidx.s(9) - copydata.o common/copydata.s(9) -zerobss (zerobss.o): - crt0.o crt0.s(12) - diff --git a/examples/semi-working-cc65/main2 b/examples/semi-working-cc65/main2 deleted file mode 100644 index d6bbefdca4270f85594e727e28ff438c54bd75e1..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 710 zcmZ8fL2DE-6n>e`bd$F(Zf{aO#2?U0z4RvxGI;S11Z-gs3k45)_0W{1xW(Cv;$>s7 zU<$Rnd#H#9i-$7wlw*Ivusu0=XhDUTthJpLl6-t$zP!Ab7wz7j8PGo^Y!m(%`4`6T zQ~reULzdm8-QP|@)i5iXX75n&d-&qffkMd+hA8QT+8;N}fFe2d8y^*Vqe}P^%6L0j zwq&Ye{tzdzhgGbdhz6A3o|*WR@f7#sB(cN&EC~T_eDn9H#WASZ-*laaYIr57D?KkP z{x3A@f{MI_&M6CCVRdB!MV%_*4b8e@qFKq;iI}7}sO2^G?~@^#fe!U(Ft_*$HP8OB zR$yCm4Eb^xW76$lAmLS1l8%^lW2iB7!we-gz84;*GtCqY%hkT{e*)4ySUZm-jG_~w z$W9KOUJfGNY6q8OK8&RA+ntFmV-MyS0=WJm?vAj3gu9=x_u0Ar@n86gFTWvoPB}Xje*n(N3$XwI diff --git a/examples/semi-working-cc65/neo6502.cfg b/examples/semi-working-cc65/neo6502.cfg deleted file mode 100644 index c68c1483a..000000000 --- a/examples/semi-working-cc65/neo6502.cfg +++ /dev/null @@ -1,37 +0,0 @@ -FEATURES { - STARTADDRESS: default = $0800; -} - -MEMORY { - # for size of ZP, see runtime/zeropage.s and c1p/extzp.s - ZP: start = $0, size = $100, type = rw, define = yes; - RAM: start = $800, size = $EE00, define = yes; -} - -SEGMENTS { - ZEROPAGE: load = ZP, type = zp; - EXTZP: load = ZP, type = zp, define = yes, optional = yes; - BOOT: load = RAM, type = rw, optional = yes; - STARTUP: load = RAM, type = rw; - LOWCODE: load = RAM, type = rw, optional = yes; - ONCE: load = RAM, type = rw, optional = yes; - CODE: load = RAM, type = rw; - RODATA: load = RAM, type = ro; - DATA: load = RAM, type = rw, define = yes; - BSS: load = RAM, type = bss, define = yes; -} - -FEATURES { - CONDES: type = constructor, - label = __CONSTRUCTOR_TABLE__, - count = __CONSTRUCTOR_COUNT__, - segment = ONCE; - CONDES: type = destructor, - label = __DESTRUCTOR_TABLE__, - count = __DESTRUCTOR_COUNT__, - segment = RODATA; -} - -SYMBOLS { - __STACKSIZE__: type = weak, value = $0400; # 1 kB stack -} \ No newline at end of file diff --git a/examples/semi-working-cc65/neo6502.lib b/examples/semi-working-cc65/neo6502.lib deleted file mode 100644 index d399b3b0e735a4c6c910cdd7c345eae4bd9a8afb..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 998 zcmYLI%TE(w5TE(B-Q8}xl!Ar=YL=o1B(^*&i5Dw0Xhcg|%7M$e-LAMwAK9%2d$LRP z;z^GtUbuPjqC{i#q*oHXaq{k;U_yd3g>X?oy0d1fKR^}WBJ-pc~V zCik5`de6&)kIt{KB2#gMdIYdaovP7Ob@5bPB8A<)v2N}y{o*o=ph$w)J>oaM!9l=2M zt3E9d*vD!>3sf9nrD*}82DpL=4R_?uFaTfzq^-jvR3jKiMTjAxV+=JBBkU7V!hWF< zN+N>2BB=`%!%WICh4CB?NY7Bn-Q&bD{uxDxhbL*cgc{0}kalFiVdSlyA5;l@RBBIY zq$U^=ym!7z2s1>vy1<1j+c}09=VGizxS+G;Nx%-SvYcc&&OnO=80Op=RvFG23`3k7 zWyQzqUJs0eYCIoFXKP3JSSt@+4+p+*W9|D;r6Dr>7>aBzZvp9XH%i@ttU>X+480tW*BA}=0dGn zbDCj>VU}Tz`zu!cQS^j;x9uqHrr)$|CrV7Cx;mWZ3Vmz6x_u$_u+}ujt%^U9GA!F` z_`bpCFe(kN>Ug2W!ctx?7M5~rIq62J6k?%n Date: Mon, 19 Aug 2024 08:18:28 +0100 Subject: [PATCH 2/2] Fixed build --- examples/Makefile | 2 +- firmware/common/scripts/who.py | 3 +++ release/Makefile | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/examples/Makefile b/examples/Makefile index b50328f02..a3541b5c0 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -19,7 +19,7 @@ endif all: basicdemos $(CDEL) samples.zip - zip -r samples.zip basic-examples C assembly + zip -r samples.zip basic-examples c assembly release: make -B all diff --git a/firmware/common/scripts/who.py b/firmware/common/scripts/who.py index d96302a26..10a5b08f2 100644 --- a/firmware/common/scripts/who.py +++ b/firmware/common/scripts/who.py @@ -22,6 +22,9 @@ David Given Wojciech Bocianski Bill Auger + Pete Gollan + Andy McCall + Chris Garrett """.strip().split("\n") whoList = [x.strip() for x in whoList] diff --git a/release/Makefile b/release/Makefile index 9543c507f..8c116c17c 100644 --- a/release/Makefile +++ b/release/Makefile @@ -63,7 +63,7 @@ all: # Create dir for examples and copy , note basic-examples => basic $(CMAKEDIR) $(TMPDIR)$(S)examples $(CCOPY) -r $(EXAMPLEDIR)assembly $(TMPDIR)examples - $(CCOPY) -r $(EXAMPLEDIR)C $(TMPDIR)examples + $(CCOPY) -r $(EXAMPLEDIR)c $(TMPDIR)examples $(CMAKEDIR) $(TMPDIR)$(S)examples$(S)basic $(CCOPY) -r $(EXAMPLEDIR)basic-examples$(S)* $(TMPDIR)examples$(S)basic $(CCOPY) -r $(ROOTDIR)basic$(S)libraries $(TMPDIR)