Skip to content

Commit

Permalink
Update emulator.js
Browse files Browse the repository at this point in the history
  • Loading branch information
zHoeshin authored Jul 24, 2024
1 parent 9963cba commit 8390c61
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion emulator.js
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ class Screen{
}


function create(databus, addressbus, code, screenwidth, screenheight, screenwidthchars, screenheightchars, conmem){
function create(databus, addressbus, code, screenwidth, screenheight, screenwidthchars, screenheightchars, swapmode, conmem){
ram = Array(2**addressbus).fill(0)
let l = Math.min(2**addressbus, conmem.length)
for(let i = 0; i < l; i++){
Expand All @@ -274,6 +274,7 @@ function create(databus, addressbus, code, screenwidth, screenheight, screenwidt
monitor.canvas.imageSmoothingEnabled = false

monitor.make_buffer()
monitor.set_swapmode(swapmode)

DL = 2**databus - 1
AL = 2**addressbus - 1
Expand Down

0 comments on commit 8390c61

Please sign in to comment.