Added __fastcall__ to comments
This commit is contained in:
parent
f1f700799b
commit
a93542e80c
2 changed files with 3 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
||||||
;
|
;
|
||||||
; Wayne Parham (wayne@parhamdata.com)
|
; Wayne Parham (wayne@parhamdata.com)
|
||||||
;
|
;
|
||||||
; int read (int fd, void* buf, unsigned count);
|
; int __fastcall__ read (int fd, void* buf, unsigned count);
|
||||||
;
|
;
|
||||||
|
|
||||||
.include "sym1.inc"
|
.include "sym1.inc"
|
||||||
|
@ -37,6 +37,7 @@ getch: jsr INTCHR ; Get character using Monitor ROM call
|
||||||
chkcr: cmp #$0D ; Check for '\r'
|
chkcr: cmp #$0D ; Check for '\r'
|
||||||
bne putch ; ...if CR character
|
bne putch ; ...if CR character
|
||||||
lda #$0A ; Replace with '\n'
|
lda #$0A ; Replace with '\n'
|
||||||
|
jsr OUTCHR ; and echo it
|
||||||
|
|
||||||
putch: ldy #$00 ; Put char into return buffer
|
putch: ldy #$00 ; Put char into return buffer
|
||||||
sta (ptr1),y
|
sta (ptr1),y
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
;
|
;
|
||||||
; Wayne Parham (wayne@parhamdata.com)
|
; Wayne Parham (wayne@parhamdata.com)
|
||||||
;
|
;
|
||||||
; int write (int fd, const void* buf, int count);
|
; int __fastcall__ write (int fd, const void* buf, int count);
|
||||||
;
|
;
|
||||||
|
|
||||||
.include "sym1.inc"
|
.include "sym1.inc"
|
||||||
|
|
Loading…
Add table
Reference in a new issue