From 4b77072fed541a3635ed2b6ec7d3b5f521c5500a Mon Sep 17 00:00:00 2001 From: jede Date: Thu, 2 Feb 2017 00:05:50 +0100 Subject: [PATCH] Correcting alignment --- libsrc/telestrat/close.s | 2 +- libsrc/telestrat/mainargs.s | 12 ++++++------ libsrc/telestrat/write.s | 36 +++++++++++++++++------------------- 3 files changed, 24 insertions(+), 26 deletions(-) diff --git a/libsrc/telestrat/close.s b/libsrc/telestrat/close.s index 240ebb063..04d8788d1 100644 --- a/libsrc/telestrat/close.s +++ b/libsrc/telestrat/close.s @@ -6,7 +6,7 @@ .include "zeropage.inc" .include "telestrat.inc" - .include "errno.inc" + .include "errno.inc" .include "fcntl.inc" ; int open (const char* name, int flags, ...); /* May take a mode argument */ diff --git a/libsrc/telestrat/mainargs.s b/libsrc/telestrat/mainargs.s index fa388cbfa..41c3a5131 100644 --- a/libsrc/telestrat/mainargs.s +++ b/libsrc/telestrat/mainargs.s @@ -26,14 +26,14 @@ initmainargs: L0: lda BUFEDT,x beq L3 cmp #' ' - bne L1 - lda #0 - beq L3 + bne L1 + lda #0 + beq L3 L1: sta name,x inx - cpx #FNAME_LEN + cpx #FNAME_LEN bne L0 - lda #0 + lda #0 L3: sta name,x inc __argc ; argc always is equal to, at least, 1 @@ -57,7 +57,7 @@ setterm:sta term ; Set end of argument marker ; Now, store a pointer, to the argument, into the next slot. txa ; Get low byte - clc + clc adc #