From fb81235769e17883355e2bae66994d6e7f2891ab Mon Sep 17 00:00:00 2001 From: cuz Date: Thu, 9 Jan 2003 11:34:23 +0000 Subject: [PATCH] Fix comments and remove whitespace from __asm__ macros git-svn-id: svn://svn.cc65.org/cc65/trunk@1895 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- include/6502.h | 12 ++++++------ libsrc/common/_sys.s | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/include/6502.h b/include/6502.h index 5f5225149..99641b21e 100644 --- a/include/6502.h +++ b/include/6502.h @@ -49,9 +49,9 @@ unsigned char getcpu (void); /* Macros for CPU instructions */ -#define BRK() __asm__ ("\tbrk") -#define CLI() __asm__ ("\tcli") -#define SEI() __asm__ ("\tsei") +#define BRK() __asm__ ("brk") +#define CLI() __asm__ ("cli") +#define SEI() __asm__ ("sei") @@ -86,9 +86,9 @@ struct regs { /* Function to call any machine language subroutine. All registers in the * regs structure are passed into the routine and the results are passed - * out. Some of the flags are ignored on input. The called routine must - * end with an RTS. - */ + * out. The B flag is ignored on input. The called routine must end with + * an RTS. + */ void __fastcall__ _sys (struct regs* r); diff --git a/libsrc/common/_sys.s b/libsrc/common/_sys.s index c92c1d8d7..09856b9bf 100644 --- a/libsrc/common/_sys.s +++ b/libsrc/common/_sys.s @@ -17,7 +17,7 @@ __sys: sta ptr1 ldy #5 lda (ptr1),y sta jmpvec+2 - dey + dey lda (ptr1),y sta jmpvec+1 @@ -25,7 +25,7 @@ __sys: sta ptr1 dey lda (ptr1),y - and #%11001011 + and #%11001111 ; Mask out break and unused flag pha ldy #0 lda (ptr1),y @@ -35,7 +35,7 @@ __sys: sta ptr1 iny lda (ptr1),y - tay + tax iny lda (ptr1),y tay -- 2.39.5