When i run makesim i get this errors:
Code:
C:\cc65\sim>echo off
SIM
The system cannot find the path specified.
read.s(58): Error: Illegal addressing mode
write.s(64): Error: Illegal addressing mode
common
The system cannot find the path specified.
read.s(58): Error: Illegal addressing mode
write.s(64): Error: Illegal addressing mode
conio
The system cannot find the path specified.
read.s(58): Error: Illegal addressing mode
write.s(64): Error: Illegal addressing mode
dbg
The system cannot find the path specified.
read.s(58): Error: Illegal addressing mode
write.s(64): Error: Illegal addressing mode
runtime
The system cannot find the path specified.
read.s(58): Error: Illegal addressing mode
write.s(64): Error: Illegal addressing mode
Build library
ar65.exe: Warning: Library `sim.lib' not found - will be created
ar65.exe: Error: Could not open `common\*.o': No such file or directory
ar65.exe: Warning: Library `sim.lib' not found - will be created
ar65.exe: Error: Could not open `runtime\*.o': No such file or directory
ar65.exe: Warning: Library `sim.lib' not found - will be created
ar65.exe: Error: Could not open `conio\*.o': No such file or directory
ar65.exe: Warning: Library `sim.lib' not found - will be created
ar65.exe: Error: Could not open `dbg\*.o': No such file or directory
ar65.exe: Warning: Library `sim.lib' not found - will be created
Move library files
Cleanup
The system cannot find the file specified.
The system cannot find the file specified.
The system cannot find the file specified.
The system cannot find the file specified.
Press any key to continue . . .
But it kinda still works...
I also modified my sim.cfg and now some routines are missing, and jmp in hello1(the first instruction) points to address 0000.
sim.cfg
Code:
#
# kawalski Simulator
#
MEMORY {
HEADER: start = $C000, size = $0004, file = %O;
ZP: start = $0000, size = $00D0, type = rw, define = yes;
RAM: start = $0200, size = $7E00, file = %O, define = yes;
ROM: start = $C010, size = $3FE0, type = ro, define = yes;
}
SEGMENTS {
EXEHDR: load = HEADER, type = ro;
STARTUP: load = ROM, type = ro;
LOWCODE: load = ROM, type = ro, optional = yes;
INIT: load = ROM, type = ro, define = yes, optional = yes;
CODE: load = ROM, type = ro;
RODATA: load = ROM, type = ro;
DATA: load = RAM, type = rw;
BSS: load = RAM, type = bss, define = yes;
HEAP: load = RAM, type = bss, optional = yes; # must sit just below stack
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: type = interruptor,
segment = RODATA,
label = __INTERRUPTOR_TABLE__,
count = __INTERRUPTOR_COUNT__;
}
SYMBOLS {
__STACKSIZE__ = $800; # 2K stack
}
SBC map:
0-32k ram
32k- 48k i/o stuff
48k-64k ram