Am 05/30/2022 07:34 PM, Zbig schrieb:
Hello,
I downloaded spasm.zip assembler/linker from the site http://www.cpm.z80.de/emulate.html , but I met a problem I'm
unable to solve: although spasm.exe generates .obj file, the slink.exe
linker _always_ complains FILE READ ERROR and it deletes .obj file
I tried to use to create final .com file.
Perhaps somebody can make any tip, how to use slink.exe to make it work? Maybe some docs are available (the package contains just short readme)?
I work within FreeDOS environment
Using DOSEMU, I can confirm that.
SPASM.EXE works.
SLINK.EXE does nothing ???
Btw, I used the following example.
hello.asm
==== 8< ====
org 100h
lxi d,hello
mvi c,9
call 5
ret
hello: db 13,10,'Hello world!$'
==== 8< ====
So, these two programs are clearly *NOT*
very usable, if you want to run them as
cross development tools.
But if you want to use these programms for historical
reasons and have the possibility to run them natively
or under an emulator, there is a solution!
Cut off the first 4480 bytes and name them .COM.
Both are then running fine under any CP/M emulator!
So, assembling, linking and running the example...
spasm hello
-------------------------------------------
SPASM - Single Pass Assembler under CP/M-80
Version 2.06 (C) Copyright 1986,87,88,89,90
All rights reserved -- by: Harris Landsberg -------------------------------------------
0 error(s) encountered
slink hello=hello
-------------------------------------------
SLINK - Object Code File Linker for CP/M-80
Version 2.07 (C) Copyright 1986,87,88,89
All rights reserved -- by: Harris Landsberg -------------------------------------------
CODE START: 0100
CODE SIZE: 0018
DATA START: 0118
HEAP START: 0118
WRITTEN: 0.125K
hello
Hello world!
Have fun!
Martin
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)