aboutsummaryrefslogtreecommitdiffstats
path: root/data/bacldr.asm
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2014-06-17 08:50:17 -0700
committerH. Peter Anvin <hpa@zytor.com>2014-06-17 08:50:17 -0700
commitc2b2d4556275fad0360a98128bb62436134e2065 (patch)
treeeb50c22ab3044b72e74ccf326d522535dfd61cf3 /data/bacldr.asm
parenta6a1600daa977d4f97f7e02a7499e1236afe54e9 (diff)
downloadabc80-c2b2d4556275fad0360a98128bb62436134e2065.tar.gz
abc80-c2b2d4556275fad0360a98128bb62436134e2065.tar.xz
abc80-c2b2d4556275fad0360a98128bb62436134e2065.zip
bacldr: Add loader variant that supports relocatable code
Add a version of the loader which supports relocatable code to be loaded at BOFA. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'data/bacldr.asm')
-rw-r--r--data/bacldr.asm5
1 files changed, 2 insertions, 3 deletions
diff --git a/data/bacldr.asm b/data/bacldr.asm
index 2a232c1..d75f7d2 100644
--- a/data/bacldr.asm
+++ b/data/bacldr.asm
@@ -6,11 +6,10 @@ LOAD: equ 0xdddd ; Load address
ENTRY: equ 0xbbbb
ld hl,(BOFA)
- ld de,offset
- add hl,de
+ ld bc,offset ; offset <= 255
+ add hl,bc
ld de,LOAD
- ld b,0
; Get data block length
loop: