1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-07 23:29:39 +00:00

make atari testcode compile again, added makefile

This commit is contained in:
mrdudz 2020-08-26 20:53:45 +02:00
parent 4c912a0fbe
commit c6adf4364f
4 changed files with 39 additions and 0 deletions

View File

@ -0,0 +1,32 @@
all: charmapping.xex defdev.xex displaylist.xex mem.xex multi.xex ostype.xex \
scrcode.com sys.xex
charmapping.xex: charmapping.c
cl65 -t atari -o charmapping.xex charmapping.c
defdev.xex: defdev.c
cl65 -t atari -o defdev.xex defdev.c
displaylist.xex: displaylist.c
cl65 -t atari -o displaylist.xex displaylist.c
mem.xex: mem.c ../getsp.s
cl65 -t atari -o mem.xex mem.c ../getsp.s
multi.xex: multi-xex.s multi-xex.cfg
cl65 -t atari -C multi-xex.cfg multi-xex.s -o multi.xex
ostype.xex: ostype.c
cl65 -t atari -o ostype.xex ostype.c
scrcode.com: scrcode.s
ca65 -t atari -o scrcode.o scrcode.s
ld65 -C atari-asm.cfg -o scrcode.com scrcode.o
sys.xex: sys.c
cl65 -t atari -o sys.xex sys.c
clean:
$(RM) charmapping.xex
$(RM) defdev.xex
$(RM) displaylist.xex
$(RM) mem.xex
$(RM) multi.xex
$(RM) ostype.xex
$(RM) scrcode.o
$(RM) scrcode.com
$(RM) sys.xex

Binary file not shown.

View File

@ -43,15 +43,20 @@ key: lda CH
dispdata: scrcode "fooBa", 'r', $66, 3+4
disp_len = * - dispdata
.export __AUTOSTART__: absolute = 1
.segment "AUTOSTRT"
.word $02E0
.word $02E1
.word __CODE_LOAD__+1
.export __EXEHDR__: absolute = 1
.segment "EXEHDR"
.word $FFFF
.segment "MAINHDR"
.word __CODE_LOAD__
.word __BSS_LOAD__ - 1

View File

@ -10,6 +10,8 @@
#include <6502.h>
#include <conio.h>
#define IOCB (OS.iocb[0])
static struct regs regs;
static struct __iocb *iocb = &IOCB; /* use IOCB #0 */