Allow "mode" argument to open() to be passed from 6502 code.

Implements this suggestion:
https://github.com/cc65/cc65/pull/719#issuecomment-413809096
This commit is contained in:
Patrick Pelletier
2018-08-17 10:43:14 -07:00
committed by Oliver Schmidt
parent d602572bbe
commit aba320eade
4 changed files with 81 additions and 5 deletions

3
asminc/stat.inc Normal file
View File

@@ -0,0 +1,3 @@
; File mode constants, must match the values in the C headers
S_IREAD = $0100 ; octal 0400
S_IWRITE = $0080 ; octal 0200