Move include files into /asminc, changed include file paths

git-svn-id: svn://svn.cc65.org/cc65/trunk@1249 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz
2002-04-21 14:19:16 +00:00
parent 302005befe
commit d0599a24fe
18 changed files with 30 additions and 144 deletions

View File

@@ -1,27 +0,0 @@
;
; _file.inc
;
; (C) Copyright 2002 Ullrich von Bassewitz (uz@cc65.org)
;
; Assembler include file that makes the constants and structures in _file.h
; available for asm code.
; Struct _FILE offsets and size
_FILE_f_fd = $00
_FILE_f_flags = $01
_FILE_size = $02
; Flags field
_FCLOSED = $00
_FOPEN = $01
_FEOF = $02
_FERROR = $04
_FPUSHBACK = $08
; Maximum number of open files (size of table)
FOPEN_MAX = 8
; File table
.global __filetab

View File

@@ -1,28 +0,0 @@
;
; Definitions for the character type tables
;
; Ullrich von Bassewitz, 08.09.2001
;
; Make the __ctype table an exported/imported symbol
.global __ctype
; Define bitmapped constants for the table entries
CT_LOWER = $01 ; 0 - Lower case char
CT_UPPER = $02 ; 1 - Upper case char
CT_DIGIT = $04 ; 2 - Numeric digit
CT_XDIGIT = $08 ; 3 - Hex digit (both, lower and upper)
CT_CTRL = $10 ; 4 - Control character
CT_SPACE = $20 ; 5 - The space character itself
CT_OTHER_WS = $40 ; 6 - Other whitespace ('\f', '\n', '\r', '\t' and '\v')
CT_SPACE_TAB = $80 ; 7 - Space or tab character
; Combined stuff
CT_ALNUM = (CT_LOWER | CT_UPPER | CT_DIGIT)
CT_ALPHA = (CT_LOWER | CT_UPPER)
CT_CTRL_SPACE = (CT_CTRL | CT_SPACE)
CT_NOT_PUNCT = (CT_SPACE | CT_CTRL | CT_DIGIT | CT_UPPER | CT_LOWER)

View File

@@ -1,24 +0,0 @@
;
; Ullrich von Bassewitz, 16.05.2000
;
; Error codes, must match the values in the C headers
ENOENT = 1 ; No such file or directory
ENOMEM = 2 ; Out of memory
EACCES = 3 ; Permission denied
ENODEV = 4 ; No such device
EMFILE = 5 ; Too many open files
EBUSY = 6 ; Device or resource busy
EINVAL = 7 ; Invalid argument
ENOSPC = 8 ; No space left on device
EEXIST = 9 ; File exists
EAGAIN = 10 ; Try again
EIO = 11 ; I/O error
EINTR = 12 ; Interrupted system call
ENOSYS = 13 ; Function not implemented
ESPIPE = 14 ; Illegal seek
EUNKNOWN = 15 ; Unknown OS specific error - must be last!
EMAX = 15 ; Highest error code

View File

@@ -1,15 +0,0 @@
;
; Ullrich von Bassewitz, 05.06.1999
;
; File mode constants, must match the values in the C headers
O_RDONLY = $01
O_WRONLY = $02
O_RDWR = $03
O_CREAT = $04
O_TRUNC = $10
O_APPEND = $20

View File

@@ -1,21 +0,0 @@
;
; rs232.inc
;
; (C) Copyright 2002 Ullrich von Bassewitz (uz@cc65.org)
;
; Assembler include file that makes the constants and structures from rs232.h
; available for asm code.
; Error codes returned by all functions
RS_ERR_OK = $00 ; Not an error - relax
RS_ERR_NOT_INITIALIZED = $01 ; Module not initialized
RS_ERR_BAUD_TOO_FAST = $02 ; Cannot handle baud rate
RS_ERR_BAUD_NOT_AVAIL = $03 ; Baud rate not available
RS_ERR_NO_DATA = $04 ; Nothing to read
RS_ERR_OVERFLOW = $05 ; No room in send buffer