update presets

This commit is contained in:
Steven Hugg 2019-07-16 09:55:41 -04:00
parent 00057c6018
commit 2073c953a8
2 changed files with 4 additions and 1 deletions

View File

@ -76,7 +76,7 @@ void update_nametable() {
// draw rest of building
memset(buf+PLAYROWS-bldg_height, bldg_char, bldg_height);
// 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
if ((x & 3) == 1) {
// compute attribute table address

View File

@ -23,6 +23,9 @@ extern byte updptr;
VRAMBUF_ADD(addr);\
VRAMBUF_ADD(len);
// OR with address to put vertical run
#define VRAMBUF_VERT 0x8000
// add EOF marker to buffer (but don't increment pointer)
void vrambuf_end(void);