Hmm... funktioniert bei mir nicht.
Ich habe jetzt bei mir diese Config:
Code
- MEMORY {
- ZP: file = "", define = yes, start = $0002, size = $001A;
- LOADADDR: file = %O, start = $3FFE, size = $0002;
- HEADER: file = "", start = $1C01, size = $000C;
- RAM: file = %O, define = yes, start = $4000, size = $4000 - $0800 ;
- }
- SEGMENTS {
- STARTUP: load = RAM, type = ro;
- LOWCODE: load = RAM, type = ro, optional = yes;
- INIT: load = RAM, type = ro, define = yes, optional = yes;
- CODE: load = RAM, type = ro;
- RODATA: load = RAM, type = ro;
- DATA: load = RAM, type = rw;
- ZPSAVE: load = RAM, type = bss;
- BSS: load = RAM, type = bss, define = yes;
- HEAP: load = RAM, type = bss, optional = yes;
- ZEROPAGE: load = ZP, type = zp;
- }
- FEATURES {
- CONDES: segment = INIT,
- type = constructor,
- label = __CONSTRUCTOR_TABLE__,
- count = __CONSTRUCTOR_COUNT__;
- CONDES: segment = RODATA,
- type = destructor,
- label = __DESTRUCTOR_TABLE__,
- count = __DESTRUCTOR_COUNT__;
- CONDES: segment = RODATA,
- type = interruptor,
- label = __INTERRUPTOR_TABLE__,
- count = __INTERRUPTOR_COUNT__;
- }
- SYMBOLS {
- __STACKSIZE__: value = $0800, weak = yes;
- }
Dieses ist die start.bat :
cl65 -t c128 --config c128_4000.cfg test.c -o test.prg
Hier die test.c :
Code
Programm wird sauber übersetzt.
Habe den Vice-c128 gestartet.
Dann "Load"test.prg",8
Programm wird fehlerfrei geladen.
Monitor gestartet:
a 01000...usw
................
Es erscheint alles wie hier im monitor:
a 01000 ad 00 ff lda $ff00
a 01003 48 pha
a 01004 a9 0e lda #$0e
a 01006 8d 00 ff sta $ff00
a 01009 20 00 40 jsr $4000
a 0100c 68 pla
a 0100d 8d 00 ff sta $ff00
a 01010 60 rts
a 01011
Danach "d 1000" eingegeben:
es startet sich der Monitor...mein Programm nicht.
Was habe ich hier falsch gemacht bzw nicht verstanden?
danke.
gruss