bot = vram[backbuf] + 159 * 240 / 2;
tunptr = tunmap;
for(i=0; i<80; i++) {
- for(j=0; j<240/2; j++) {
+ top++;
+ bot++;
+ tunptr++;
+ for(j=1; j<240/2; j++) {
uint16_t pptop, ppbot;
tun = *tunptr++;
int i;
uint16_t iflags;
- intr_disable();
- iflags = REG_IF & 0x3fff;
-
+ iflags = REG_IF;
for(i=0; i<MAX_INTR; i++) {
if((iflags & (1 << i)) && intr_table[i]) {
}
REG_IF = iflags; /* ack intr */
- intr_enable();
}
void intr_init(void)
int iwram_brk(void *addr)
{
- if(addr < &__data_end__) {
+ if((char*)addr < &__data_end__) {
addr = &__data_end__;
}
if(addr > get_sp()) {