mirror of
https://github.com/pevans/erc-c.git
synced 2025-01-20 08:31:40 +00:00
Subtract 0x400 for the correct offset
This commit is contained in:
parent
e868718f31
commit
97865e9589
@ -231,7 +231,7 @@ static char alternate_display[] = {
|
|||||||
int
|
int
|
||||||
apple2_text_row(size_t addr)
|
apple2_text_row(size_t addr)
|
||||||
{
|
{
|
||||||
return buffer_rows[addr];
|
return buffer_rows[addr - 0x400];
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -240,7 +240,7 @@ apple2_text_row(size_t addr)
|
|||||||
int
|
int
|
||||||
apple2_text_col(size_t addr)
|
apple2_text_col(size_t addr)
|
||||||
{
|
{
|
||||||
return buffer_cols[addr];
|
return buffer_cols[addr - 0x400];
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user