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:
parent
400672756b
commit
fb81235769
@ -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,8 +86,8 @@ 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);
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user