Zardoz89 / dcpu_vm

Another DCPU-16 Virtual Machine
http://zardoz89.github.io/dcpu_vm/
MIT License
6 stars 2 forks source link

Strange behaviur. Keyboard never recibes SET_MSG command #25

Closed Zardoz89 closed 10 years ago

Zardoz89 commented 10 years ago

This code : https://code.google.com/p/ctoagnos/source/browse/trunk (compiled) http://pastebin.com/Wdbygtu7

The code works in DevKit and sets keyboard to launch interrupts when a key is pressed, but running it in dcpu-vm, it never hapens.

Zardoz89 commented 10 years ago

I cheeked that something is wrong with his code to get devices ids, It's fixed if line 46 of BIOS.10c is moved to line 44. This happens because or behaviour about HQ a in-existent device. In our VM, don't changes the value of the registers, but in the case of DevKit, looks that set's to 0, so his code works in DevKit.

These fix, makes that the screen work, but the routine that does the SET_MSG is never called or calls to a wrong device.