Hi Mark,
Looks like your linker script could be a simple absolute code segment:
A file called prtime.lkr with the following contents:
; Define an abolute region for code
CODE NAME=.aseg START=0DAC0H END=0DD00H
Ken
On Mon, Jun 15, 2015 at 2:52 PM, Mark Wickens m...@wickensonline.co.uk
wrote:
Does anyone have an example linker script for VirtualT?
I've created the following assembly language file from a tutorial and want
to generate a CO file.
Thanks, Mark.
;PRTIME2
;Nov 12, 1984
;
ORG0DAC0H
;
; These are all ROM subroutines
DISPLAYEQU05A58H;print message pointed to by HL
LCDEQU04B44H;print character in register A
CHGETEQU012CBH;wait for keypress
MENUEQU05797H;main MODEL 100 menu
;
SECS EQU0F933H;memory location for seconds
;
BEGINLXIHL,MESSAGE;set HL pointer to start of message data
CALLDISPLAY;display message
;
LXIHL,SECS+1;SECS+1 = $F933+1 = $F934
MOVA,M
CALLLCD
LXIHL,SECS
MOVA,M
CALLLCD
;
CALLCHGET
JMPMENU
;
MESSAGE DBTIME =;message data
DB00H;terminator
;
END