56 lines
1.1 KiB
Plaintext
56 lines
1.1 KiB
Plaintext
;********************************************************************************
|
|
; @module system
|
|
; @type header
|
|
; @details
|
|
; Variable definitions for the current hardware setup
|
|
;********************************************************************************
|
|
|
|
.ifndef INCLUDE_SYSTEM
|
|
INCLUDE_SYSTEM = 1
|
|
; reserved RAM addresses
|
|
; 00-0f - free
|
|
; 10-1f - arguments / return values
|
|
; 20-ff - free
|
|
; 0100 - 01FF Stack
|
|
; 0200,0201 keybuffer write/read pointer
|
|
; 0202-02ff keybuffer
|
|
; 0300 lcd character counter
|
|
; 0400, 0401, 0402 dht status, dht bit, dht_bit_rot
|
|
; 0403 value offset
|
|
; 0405-04a0 rh high/low, temp high/low, checksum
|
|
|
|
.include "io_W65C22.h65"
|
|
.include "utility.h65"
|
|
|
|
; ARGUMENTS
|
|
; a,x,y can also be used
|
|
ARG0 = $10
|
|
ARG1 = $11
|
|
ARG2 = $12
|
|
ARG3 = $13
|
|
ARG4 = $14
|
|
ARG5 = $15
|
|
ARG6 = $16
|
|
ARG7 = $17
|
|
ARG9 = $19
|
|
ARG10 = $1a
|
|
ARG11 = $1b
|
|
ARG12 = $1c
|
|
ARG13 = $1d
|
|
ARG14 = $1e
|
|
ARG15 = $1f
|
|
|
|
|
|
; RETURN VALUE
|
|
; in a
|
|
|
|
.segment "VIA1"
|
|
; IO1: .res 16
|
|
IO1 = $6000
|
|
|
|
.segment "VIA2"
|
|
; IO2: .res 16
|
|
IO2 = $7000
|
|
|
|
.endif ; include guard
|