From dfe19e20e4d64f175f922fcb413b2b62360c21ec Mon Sep 17 00:00:00 2001 From: Virgil Dupras Date: Mon, 3 Jun 2019 11:22:05 -0400 Subject: [PATCH] Includes work fine when assembling from the shell --- doc/zasm.md | 2 +- tools/emul/cfsin/hello.asm | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/doc/zasm.md b/doc/zasm.md index b32a4ec..dcc82c4 100644 --- a/doc/zasm.md +++ b/doc/zasm.md @@ -22,7 +22,7 @@ is configured to start at `0xe00` > bsel 3 ; select mmap > peek 5 210890CD3C ; looking good - > mptr 9000 ; hello.asm is configured to run from 0x9000 + > mptr 4200 ; hello.asm is configured to run from 0x4200 > load ff ; load compiled code from mmap > peek 5 210890CD3C ; looking good diff --git a/tools/emul/cfsin/hello.asm b/tools/emul/cfsin/hello.asm index 9c98915..1f41e92 100644 --- a/tools/emul/cfsin/hello.asm +++ b/tools/emul/cfsin/hello.asm @@ -1,6 +1,5 @@ -.equ printstr 0x3c - -.org 0x9000 +#include "user.h" +.org USER_CODE ld hl, sAwesome call printstr