Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

in/out Ports in HLLs (e.g. Turbo Pascal, BRexx, QBASIC) (Developers)

posted by marcov, 09.04.2020, 12:27

> In SBMIX, written in
> Turbo Pascal 6+, there are IN/OUT instructions via inline BASM assembly.

(Afaik this works in FPC/Dos too, and in other OSes if the relevant permissions are arranged (e.g. inoutport32.dll on windows or ioperm on *nix),

peek en poke alike functionality also exists with the mem[] pseudo array, but on 32-bit dos that access the dos 1MB, not the protect mode memory)

> Obviously, TP 5.5 can do the same in different ways (vaguely similar to
> Modula-2; bah, one guy just used
> inline
> asm anyways!).
> FPC
> and GPC (among
> others??) support such TP "port" usage. (Here's a small
> tutorial.)
>
> But even that is somewhat limited and "ad hoc".

They should generate the same instructions. How is this limited and adhoc?

What is really the problem you need to solve? What is it that these can't do?

The urls all have their own x86 primitives in various dos styles (but e.g. not Linux x86_intr.h style)

Besides these there are often also copro instructions (load/store copro cw for rounding purposes, emms etc)

 

Complete thread:

Back to the forum
Board view  Mix view
22049 Postings in 2034 Threads, 396 registered users, 246 users online (1 registered, 245 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum