diff --git a/Asuro.iso b/Asuro.iso index 03a00544..f42a10dd 100644 Binary files a/Asuro.iso and b/Asuro.iso differ diff --git a/bin/kernel.bin b/bin/kernel.bin index 6e41b97a..8e47b3f0 100755 Binary files a/bin/kernel.bin and b/bin/kernel.bin differ diff --git a/iso/boot/asuro.bin b/iso/boot/asuro.bin index 6e41b97a..8e47b3f0 100755 Binary files a/iso/boot/asuro.bin and b/iso/boot/asuro.bin differ diff --git a/lib/asuro.ppu b/lib/asuro.ppu index 42d1b75b..1a4d4e4c 100644 Binary files a/lib/asuro.ppu and b/lib/asuro.ppu differ diff --git a/lib/console.ppu b/lib/console.ppu index 75bb6836..873c8f25 100644 Binary files a/lib/console.ppu and b/lib/console.ppu differ diff --git a/lib/kernel.ppu b/lib/kernel.ppu index 004e7e20..310339b6 100644 Binary files a/lib/kernel.ppu and b/lib/kernel.ppu differ diff --git a/lib/libpconsole.a b/lib/libpconsole.a index f2aba5a9..20ebd80d 100644 Binary files a/lib/libpconsole.a and b/lib/libpconsole.a differ diff --git a/lib/libpmultiboot.a b/lib/libpmultiboot.a index 459fec68..2476e3ea 100644 Binary files a/lib/libpmultiboot.a and b/lib/libpmultiboot.a differ diff --git a/lib/libpsystem.a b/lib/libpsystem.a index 8fe311ed..4ad41334 100644 Binary files a/lib/libpsystem.a and b/lib/libpsystem.a differ diff --git a/lib/memview.ppu b/lib/memview.ppu index 99bcc110..59058978 100644 Binary files a/lib/memview.ppu and b/lib/memview.ppu differ diff --git a/lib/terminal.ppu b/lib/terminal.ppu index e8317790..e0027aca 100644 Binary files a/lib/terminal.ppu and b/lib/terminal.ppu differ diff --git a/src/prog/memview.pas b/src/prog/memview.pas index a5e3cbe6..e18c7662 100644 --- a/src/prog/memview.pas +++ b/src/prog/memview.pas @@ -3,7 +3,7 @@ unit memview; interface uses - console, terminal; + console, terminal, keyboard; procedure init(); @@ -63,6 +63,16 @@ begin end; end; +procedure OnKeyPressed(info : TKeyInfo); +begin + if info.key_code = 16 then begin + dec(MEM_LOC, 16); + end; + if info.key_code = 18 then begin + inc(MEM_LOC, 16); + end; +end; + procedure run(Params : PParamList); var loc : PChar; @@ -87,6 +97,7 @@ begin Handle:= newWindow(20, 40, 63, 14, 'MEMVIEW'); registerEventHandler(Handle, EVENT_DRAW, void(@Draw)); registerEventHandler(Handle, EVENT_CLOSE, void(@OnClose)); + registerEventHandler(Handle, EVENT_KEY_PRESSED, void(@OnKeyPressed)); writestringWND('Memview started at location: ', getTerminalHWND); end else begin writestringWND('Memview location changed to: ', getTerminalHWND); diff --git a/src/prog/terminal.pas b/src/prog/terminal.pas index 1c3af231..c0dbbe3f 100644 --- a/src/prog/terminal.pas +++ b/src/prog/terminal.pas @@ -341,6 +341,7 @@ end; procedure key_event(info : TKeyInfo); begin if TERMINAL_HWND <> 0 then begin + //writeintlnWND(info.key_code, TERMINAL_HWND); if (info.key_code >= 32) and (info.key_code <= 126) then begin if bIndex < 1024 then begin buffer[bIndex]:= info.key_code;