mirror of
https://github.com/sehugg/8bitworkshop.git
synced 2024-06-14 00:29:35 +00:00
update presets
This commit is contained in:
parent
00057c6018
commit
2073c953a8
|
@ -76,7 +76,7 @@ void update_nametable() {
|
||||||
// draw rest of building
|
// draw rest of building
|
||||||
memset(buf+PLAYROWS-bldg_height, bldg_char, bldg_height);
|
memset(buf+PLAYROWS-bldg_height, bldg_char, bldg_height);
|
||||||
// draw vertical slice in name table
|
// draw vertical slice in name table
|
||||||
vrambuf_put(addr ^ 0xc000, buf, PLAYROWS);
|
vrambuf_put(addr | VRAMBUF_VERT, buf, PLAYROWS);
|
||||||
// every 4 columns, update attribute table
|
// every 4 columns, update attribute table
|
||||||
if ((x & 3) == 1) {
|
if ((x & 3) == 1) {
|
||||||
// compute attribute table address
|
// compute attribute table address
|
||||||
|
|
|
@ -23,6 +23,9 @@ extern byte updptr;
|
||||||
VRAMBUF_ADD(addr);\
|
VRAMBUF_ADD(addr);\
|
||||||
VRAMBUF_ADD(len);
|
VRAMBUF_ADD(len);
|
||||||
|
|
||||||
|
// OR with address to put vertical run
|
||||||
|
#define VRAMBUF_VERT 0x8000
|
||||||
|
|
||||||
// add EOF marker to buffer (but don't increment pointer)
|
// add EOF marker to buffer (but don't increment pointer)
|
||||||
void vrambuf_end(void);
|
void vrambuf_end(void);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user