1
0
Fork 0
mirror of https://github.com/notwa/mm synced 2024-07-02 22:27:13 -07:00
mm/Lua/classes/ByteMonitor.lua

20 lines
489 B
Lua
Raw Normal View History

2015-05-25 20:10:00 -07:00
local Monitor = require "classes.Monitor"
local ByteMonitor = Class(Monitor)
function ByteMonitor:mark(i, x, x1)
local now = emu.framecount()
local str = ('%02i=%02X (%s)'):format(i, x, self.name)
if not self.modified[i] then
self.modified[i] = {}
end
if not self.modified[i][x] then
self.modified[i][x] = true
self.dirty = true
str = str..' (NEW!)'
end
printf('%s @%i', str, now)
message(str, 180)
end
return ByteMonitor