![]() |
![]() |
| Hello there and welcome to the PhizzyB Zone. In the future we'll be developing these pages to include a FAQ (Frequently Asked Questions), an online chat area, and much, much more. Meanwhile, if you have any urgent questions or problems, please email us at support@maxmon.com and we will leap into action immediately (if not sooner). One point of interest is that PhizzyB fan Don
McBrien in Ireland has has discovered a bug in the PhizzyB Simulator (and the Beboputer
Simulator). All of our documentation describes the SHR ("shift right")
instruction as copying the MS bit back into itself.
This forces the MS bit to be a logic 0 (which is what the simulator does incorrectly/anyway). Unfortunately, forcing the simulator to perform an arithmetic shift like it's supposed to (and like the real PhizzyB does) is much more painful. There are several ways to achieve this -- one of the simplest to understand is to create a SHRA ("shift right arithmetic") subroutine as follows:
In the subroutine (shown below) we use a JN ("Jump if negative") instruction to decide whether or not to set the MS bit to 1 as follows:
We hope to offer a simulator fix at some stage in the future (downloadable from the web) -- but this should provide a workable solution for the nonce. |
| Copyright Information | home pages for more goodies. |