mirror of
https://github.com/cc65/cc65.git
synced 2025-01-14 16:33:00 +00:00
Last push for tonight :)
This commit is contained in:
parent
4b77072fed
commit
5abb40b229
@ -1,5 +1,7 @@
|
|||||||
.export _open
|
.export _open
|
||||||
|
|
||||||
.import addysp,popax
|
.import addysp,popax
|
||||||
|
|
||||||
.importzp sp,tmp2,tmp3,tmp1
|
.importzp sp,tmp2,tmp3,tmp1
|
||||||
|
|
||||||
|
|
||||||
@ -20,7 +22,8 @@
|
|||||||
|
|
||||||
; Parameters ok. Pop the flags and save them into tmp3
|
; Parameters ok. Pop the flags and save them into tmp3
|
||||||
|
|
||||||
parmok: jsr popax ; Get flagss
|
parmok:
|
||||||
|
jsr popax ; Get flagss
|
||||||
sta tmp3 ; save flags
|
sta tmp3 ; save flags
|
||||||
; Get the filename from stack and parse it. Bail out if is not ok
|
; Get the filename from stack and parse it. Bail out if is not ok
|
||||||
jsr popax ; Get name
|
jsr popax ; Get name
|
||||||
|
@ -2,8 +2,6 @@
|
|||||||
; jede jede@oric.org 2017-01-22
|
; jede jede@oric.org 2017-01-22
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|
||||||
.FEATURE c_comments,labels_without_colons,pc_assignment, loose_char_term
|
|
||||||
.export _read
|
.export _read
|
||||||
|
|
||||||
.import popax
|
.import popax
|
||||||
@ -11,7 +9,7 @@
|
|||||||
.include "zeropage.inc"
|
.include "zeropage.inc"
|
||||||
.include "telestrat.inc"
|
.include "telestrat.inc"
|
||||||
|
|
||||||
; int read (int fd, void* buf, unsigned count);
|
;int read (int fd, void* buf, unsigned count);
|
||||||
|
|
||||||
.proc _read
|
.proc _read
|
||||||
sta ptr1 ; count
|
sta ptr1 ; count
|
||||||
|
Loading…
x
Reference in New Issue
Block a user