Increase TX and RX buffer size to 128 bytes

This commit is contained in:
2026-03-20 12:45:43 +00:00
parent 67fc1d8d7b
commit fe5c55cabf
4 changed files with 34 additions and 35 deletions

20
emu.js
View File

@@ -1,17 +1,15 @@
const TXBUF = 0x00;
const RXBUF = 0x20;
const TXHEAD = 0x40;
const TXTAIL = 0x44;
const RXHEAD = 0x48;
const RXTAIL = 0x4c;
const SYSREADY = 0x50;
const TXBUF = 0x000;
const RXBUF = 0x080;
const TXHEAD = 0x100;
const TXTAIL = 0x104;
const RXHEAD = 0x108;
const RXTAIL = 0x10c;
const TXBUF_SIZE = 32;
const RXBUF_SIZE = 32;
const PERIPHS_SIZE = 81;
const SYSREADY = 0x110;
const POLL_INTERVAL_MS = 20;
const DOT_INTERVAL_MS = 120;
const PERIPHS_SIZE = 0x200;
const COLS = 80;
const TAB_WIDTH = 8;
@@ -93,7 +91,7 @@ class Emulator {
}
fifo_next(idx) {
return (idx + 1) & 0x1f;
return (idx + 1) & 0x7f;
}
handle_tx_data(head, tail) {