[OpenBIOS] Help with patch

Tarl Neustaedter tarl-b2 at tarl.net
Mon Oct 10 03:30:21 CEST 2016


On 2016-Oct-9 20:57 , Programmingkid wrote:
> I want to place vga related code in the vga.fs file, but it just doesn't compile. Here are some of the errors I see:
>
> Error:  File /Users/john/Desktop/openbios/drivers/vga.fs, Line 234.  (Output Position = 1166).  Word  find-device  is not in dictionary.
> Error:  File /Users/john/Desktop/openbios/drivers/vga.fs, Line 235.  (Output Position = 1179).  Word  active-package  is not in dictionary.
>
> Is there a way to fix this error?


Those are words in the Forth dictionary, not available to FCode. A hack
way to get at them would be to add:

" find-device" execute

That's considered the moral equivalent of a goto. FCode (which is what
you find in device drivers), should not be calling find-device or
active-package. If you are calling them from FCode, you're generally
doing something wrong - there should never be a reason to access these
methods from device-specific drivers. In the 1275 spec, you'll notice
the find-device method doesn't have the "F" indicating it's an FCode.





More information about the OpenBIOS mailing list