Re: Linux in Forth?



Op Tue, 19 Jul 2005 11:52:35 GMT schreef David Given:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Paul E. Bennett wrote:
> [...]
>> It seems you may have read it with a different slant to my reading of it.
>> I thought that there was a reasonable case for modularity and abstraction
>> but with a note to keep both aspects appropriate to the natural stucture
>> of the system.
>
> Hrm.
>
> Let me expand: on pages 92..94, there's a discussion of data hiding. As an
> example, Leo uses the PC BIOS text display interface as an example; it
> provides a number of entry points for doing various things on the console.
> He then points out that there is no entry point for displaying a string of
> text, which means that the only way to do it is to repeatedly call the
> display-character routine: this is slow.
>
> He then says that the correct thing to do is to provide a word that returns
> the address of the video memory, which allows the API to be extended by the
> user.

In the second print (1994) Leo warns the reader on page 80 that a hardware
revision might not survive that kind of code. But even in 2005 a DOS
programmer can store characters directly in the screen buffer.

> But this is just plain *wrong* --- by exposing the address of the video
> memory, you have to make public the format of the framebuffer, which means
> you can't change your implementation without breaking your API.

It's of course wrong, but DOS programmers always had success with it. There
was no API.

Coos
--
CHForth, 16 bit DOS applications
http://home.hccnet.nl/j.j.haak/forth.html
.



Relevant Pages

  • Re: simple unicode question
    ... (click Start, Run and type CMD ... type CHCP to display your Codepage - mine is 850 ... I just tried this in XL97/SR1 and got the Pi symbol in my DOS ... "Bryan Hessey" ...
    (microsoft.public.excel.misc)
  • Re: Writing software for DOS
    ... Runs in DOS 6.n. ... Freely configurable display colours ... Can load and save files over the size of 1MB. ... Automatic line wrapping at the end of the screen, display ...
    (rec.arts.sf.composition)
  • Re: MDI Form Question
    ... And I'm still pretty weak on the API calls. ... ....as for the Caption being blank... ... One for the main display of db info and a second for the forms needed ... Private Const SW_MAXIMIZE = 3 ...
    (microsoft.public.vb.general.discussion)
  • Re: Capture ALL movements...event?
    ... It is technically possible to do through API calls, ... which receives *every* mouse and keyboard event. ... guess I'll just have to deal with the WindowSelectionChange the best I ... doesn't display when you are using it with Internet Explorer. ...
    (microsoft.public.word.vba.general)
  • Re: Steve Jobs has died
    ... The info I can find on the SE/30 suggests it had the usual small B&W display ... operate with overlapping monochrome and colour displays (twinheaded DOS ... them being astonished by the quality of the Apple colour display. ...
    (uk.legal)