[OpenBIOS] Help with patch
G 3
programmingkidx at gmail.com
Mon Oct 10 05:00:22 CEST 2016
On Oct 9, 2016, at 9:30 PM, Tarl Neustaedter wrote:
> 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.
Thank you very much for your comment. If you have seen my patch, what
would
you suggest I do in order to access properties from nodes? I was told
the patch
is required to place its code in drivers/vga.fs.
More information about the OpenBIOS
mailing list