1
0
mirror of https://github.com/cc65/cc65.git synced 2025-01-31 03:33:04 +00:00

Fix comments and remove whitespace from __asm__ macros

git-svn-id: svn://svn.cc65.org/cc65/trunk@1895 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz 2003-01-09 11:34:23 +00:00
parent 400672756b
commit fb81235769
2 changed files with 9 additions and 9 deletions

View File

@ -49,9 +49,9 @@ unsigned char getcpu (void);
/* Macros for CPU instructions */ /* Macros for CPU instructions */
#define BRK() __asm__ ("\tbrk") #define BRK() __asm__ ("brk")
#define CLI() __asm__ ("\tcli") #define CLI() __asm__ ("cli")
#define SEI() __asm__ ("\tsei") #define SEI() __asm__ ("sei")
@ -86,8 +86,8 @@ struct regs {
/* Function to call any machine language subroutine. All registers in the /* Function to call any machine language subroutine. All registers in the
* regs structure are passed into the routine and the results are passed * 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 * out. The B flag is ignored on input. The called routine must end with
* end with an RTS. * an RTS.
*/ */
void __fastcall__ _sys (struct regs* r); void __fastcall__ _sys (struct regs* r);

View File

@ -25,7 +25,7 @@ __sys: sta ptr1
dey dey
lda (ptr1),y lda (ptr1),y
and #%11001011 and #%11001111 ; Mask out break and unused flag
pha pha
ldy #0 ldy #0
lda (ptr1),y lda (ptr1),y
@ -35,7 +35,7 @@ __sys: sta ptr1
iny iny
lda (ptr1),y lda (ptr1),y
tay tax
iny iny
lda (ptr1),y lda (ptr1),y
tay tay