mirror of
https://github.com/cc65/cc65.git
synced 2025-02-25 16:29:08 +00:00
Use _file.inc and its constants
git-svn-id: svn://svn.cc65.org/cc65/trunk@1206 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
6e37905b18
commit
9cfcdfab53
@ -19,6 +19,7 @@
|
|||||||
.import __CODE_LOAD__, __BSS_LOAD__
|
.import __CODE_LOAD__, __BSS_LOAD__
|
||||||
|
|
||||||
.include "atari.inc"
|
.include "atari.inc"
|
||||||
|
.include "../common/_file.inc"
|
||||||
|
|
||||||
; ------------------------------------------------------------------------
|
; ------------------------------------------------------------------------
|
||||||
; Define and export the ZP variables for the runtime
|
; Define and export the ZP variables for the runtime
|
||||||
@ -125,13 +126,13 @@ L1: lda sp,x
|
|||||||
|
|
||||||
lda #0
|
lda #0
|
||||||
jsr getfd
|
jsr getfd
|
||||||
sta __filetab ; setup stdin
|
sta __filetab + (0 * _FILE_size) ; setup stdin
|
||||||
lda #0
|
lda #0
|
||||||
jsr getfd
|
jsr getfd
|
||||||
sta __filetab + 2 ; setup stdout
|
sta __filetab + (1 * _FILE_size) ; setup stdout
|
||||||
lda #0
|
lda #0
|
||||||
jsr getfd
|
jsr getfd
|
||||||
sta __filetab + 4 ; setup stderr
|
sta __filetab + (2 * _FILE_size) ; setup stderr
|
||||||
|
|
||||||
; Pass command line if present
|
; Pass command line if present
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user