Use structs

git-svn-id: svn://svn.cc65.org/cc65/trunk@2707 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz
2003-12-03 10:15:33 +00:00
parent 92a001d3af
commit c15fd58d3b
15 changed files with 64 additions and 60 deletions

View File

@@ -31,7 +31,7 @@
; Check if the file is open
ldy #_FILE_f_flags
ldy #_FILE::f_flags
lda (ptr1),y
and #_FOPEN ; Is the file open?
bne @L2 ; Branch if yes
@@ -53,7 +53,7 @@
; Build the stackframe for write()
ldy #_FILE_f_fd
ldy #_FILE::f_fd
lda (ptr1),y
ldx #$00
jsr pushax ; file->f_fd
@@ -102,7 +102,7 @@
sta ptr1
lda file+1
sta ptr1+1
ldy #_FILE_f_flags
ldy #_FILE::f_flags
lda (ptr1),y
ora #_FERROR
sta (ptr1),y