1
0
mirror of https://github.com/KarolS/millfork.git synced 2024-12-28 11:31:58 +00:00

Added vera_peek Logic

This is used to access memory settings from the Vera System
This commit is contained in:
Ambez05 2019-10-20 15:39:34 +10:00 committed by GitHub
parent f5b6d9999c
commit a2b93d84d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -102,6 +102,14 @@ inline void vera_poke(int24 address, byte value) {
vera_data1 = value
}
inline byte vera_peek(int24 address) {
vera_addr_lo = address.b0
vera_addr_mi = address.b1
vera_addr_hi = address.b2
vera_ctrl = 0
return vera_data1
}
inline void vera_fill(int24 address, byte value, word size) {
word i
vera_addr_lo = address.b0