in/out Ports in HLLs (e.g. Turbo Pascal, BRexx, QBASIC) (Developers)
> 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:
- in/out Ports in HLLs (e.g. Turbo Pascal, BRexx, QBASIC) - Rugxulo, 09.04.2020, 04:05 (Developers)
- in/out Ports in HLLs (e.g. Turbo Pascal, BRexx, QBASIC) - marcov, 09.04.2020, 12:27
- in/out Ports in HLLs (e.g. Turbo Pascal, BRexx, QBASIC) - Rugxulo, 10.04.2020, 07:39
- in/out Ports in HLLs (e.g. Turbo Pascal, BRexx, QBASIC) - marcov, 10.04.2020, 14:19
- Perl changes - Rugxulo, 26.06.2020, 01:37
- in/out Ports in HLLs (e.g. Turbo Pascal, BRexx, QBASIC) - marcov, 10.04.2020, 14:19
- in/out Ports in HLLs (e.g. Turbo Pascal, BRexx, QBASIC) - Rugxulo, 10.04.2020, 07:39
- in/out Ports in HLLs (e.g. Turbo Pascal, BRexx, QBASIC) - marcov, 09.04.2020, 12:27