From 90aa4766257db2869fd4147d229bcbcca5807f55 Mon Sep 17 00:00:00 2001 From: jonnosan Date: Sat, 10 Jan 2009 12:45:57 +0000 Subject: [PATCH] fixed bug affecting printing of strings that crossed a page boundary git-svn-id: http://svn.code.sf.net/p/netboot65/code@5 93682198-c243-4bdb-bd91-e943c89aac3b --- clients/utherboot.s | 12 +++++++----- inc/commonprint.i | 4 ++-- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/clients/utherboot.s b/clients/utherboot.s index 5e2f04c..a72e4a0 100644 --- a/clients/utherboot.s +++ b/clients/utherboot.s @@ -34,7 +34,7 @@ .import __CODE_LOAD__ .import __CODE_RUN__ .import __CODE_SIZE__ - + .bss @@ -62,6 +62,11 @@ bin_file_jmp: .res 3 ldax #$0800 jsr startup_copymem + + lda $c08b ;enable language : card read RAM, write RAM, BANK 1 + lda $c08b ;this soft switch needs to be read twice + + ;relocate the CODE segment ldax #__CODE_LOAD__ stax copy_src @@ -87,9 +92,6 @@ bin_file_jmp: .res 3 ldax #__DATA_SIZE__ jsr startup_copymem - - lda $c08b ;enable language : card read RAM, write RAM, BANK 1 - lda $c08b ;this soft switch needs to be read twice jmp init ; copy memory @@ -208,7 +210,7 @@ download: jsr print clc rts - + .rodata downloading_msg: .asciiz "DOWNLOADING " diff --git a/inc/commonprint.i b/inc/commonprint.i index 36acbb6..09b875c 100644 --- a/inc/commonprint.i +++ b/inc/commonprint.i @@ -88,9 +88,9 @@ print: beq @done_print jsr print_a inc pptr - bcc @print_loop + bne @print_loop inc pptr+1 - bcc @print_loop ;if we ever get to $fff, we've probably gone far enough ;-) + bne @print_loop ;if we ever get to $ffff, we've probably gone far enough ;-) @done_print: rts