I'm trying to get zcc to compile with a 0crt.asm file Jeurgen Buchmueller wrote years ago (with a couple of function entries I wrote as well in it).
The top of the file begins:
Code: Select all
; Run time start off for Small C.
.module _crt
.globl main
; This will be at the start location in the final image
.start:
ld sp,#.stack; pick up core top
;
; call main with argc = 1 and argv = [ "main", 0 ]
;
ld hl,#1
push hl
ld hl,#.argv
push hl
ld a,#2
call main ; call main program
pop bc
pop bc
jp 0x1a19 ; return to BASIC
;*****************************************************
;
; Video Technology library for small C compiler
;
; Juergen Buchmueller
;
;*****************************************************
.. etc ..Error at file '0crt.asm' line 15: symbol 'main' not defined
Error at file '0crt.asm' line 85: symbol 'seed' not defined
Error at file '0crt.asm' line 86: symbol 'seed' not defined
Error at file '0crt.asm' line 97: symbol 'seed' not defined
Error at file '0crt.asm' line 98: symbol 'seed' not defined
Error at file '0crt.asm' line 126: symbol 'seed' not defined
Error at file '0crt.asm' line 199: symbol 'scatx' not defined
Error at file '0crt.asm' line 293: symbol 'seed' not defined
Error at file '0crt.asm' line 420: symbol 'numbuf' not defined
Error at file '0crt.asm' line 428: symbol 'radix' not defined
Error at file '0crt.asm' line 442: symbol 'sign' not defined
Error at file '0crt.asm' line 503: symbol 'sign' not defined
Error at file '0crt.asm' line 512: symbol 'zero' not defined
Error at file '0crt.asm' line 565: symbol 'numbuf' not defined
Error at file '0crt.asm' line 566: symbol 'numbuf' not defined
Error at file '0crt.asm' line 574: symbol 'sign' not defined
Error at file '0crt.asm' line 581: symbol 'radix' not defined
Error at file '0crt.asm' line 658: symbol 'counter' not defined
Error at file '0crt.asm' line 676: symbol 'counter' not defined
Error at file '0crt.asm' line 678: symbol 'counter' not defined
Error at file '0crt.asm' line 766: symbol 'countr' not defined
Error at file '0crt.asm' line 790: symbol 'countr' not defined
Error at file '0crt.asm' line 792: symbol 'countr' not defined
Error at file '0crt.asm' line 909: symbol 'scrbase' not defined
Error at file '0crt.asm' line 940: symbol 'scrbase' not defined
Error at file '0crt.asm' line 1069: symbol 'scrbase' not defined
Errors in source file 0crt.asm:
Error at file 'C:/Users/waulo/AppData/Local/Temp/zcc0C912.asm' line 1: syntax error
Error at file '0crt.asm' line 2: syntax error
^ ---- .module _crt
Error at file '0crt.asm' line 3: syntax error
^ ---- .globl main
Error at file '0crt.asm' line 5: syntax error
^ ---- .start:
Error at file '0crt.asm' line 6: syntax error
^ ---- ld sp,#.stack; pick up core top
My commandline is:
zcc +vz -o arkaball -crt0 0crt.asm Arkaball.c
Where Arkaball.c is a game I wrote in 2000 and compiled with zcc back in the day.
I found someone had created new libraries in about 2006 but when I try to use them I get:
Error: library file 'D:/Dev/VZ/z88dk/lib/clibs/vz_clib.lib' version 1, expected version 12
I cannot re-create these lib files. Is it possible to do something to ignore this error?