flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
f0dder 19 Aug 2012, 20:39
Iirc, FreePascal only compiles for 32- and 64-bit - you're trying to use 16-bit addressing as well as BIOS calls... so this isn't going to work
![]() |
|||
![]() |
|
arcangel 20 Aug 2012, 12:19
f0dder wrote: Iirc, FreePascal only compiles for 32- and 64-bit - you're trying to use 16-bit addressing as well as BIOS calls... so this isn't going to work ![]() ![]() Please, can you help me? ![]() Thanks ![]() |
|||
![]() |
|
JohnFound 20 Aug 2012, 12:57
We can help you, but what actually you want to do? IMHO, the above program is easier to be written directly in FASM. (In this case you can create it for 16 bit dos and these interrupts will work)
|
|||
![]() |
|
arcangel 20 Aug 2012, 16:17
JohnFound wrote: We can help you, but what actually you want to do? IMHO, the above program is easier to be written directly in FASM. (In this case you can create it for 16 bit dos and these interrupts will work) I'm working with a little Pascal compiler, it generates its own code. ![]() My question is for virtual machine that executes this code ![]() I want that this works with Linux, Windows and Octaos ![]() I've made a little version, you can watch it in https://sites.google.com/site/bluedragonos1/ I would like to do this with freePascal too ![]() |
|||
![]() |
|
CandyMan 21 Aug 2012, 15:46
Try linear address
Code: var pantalla: array [0..319,0..199]of byte absolute $A0000; _________________ smaller is better |
|||
![]() |
|
arcangel 21 Aug 2012, 16:33
CandyMan wrote: Try linear address warning Quote:
Runtime error 216 Quote:
It is not working ![]() ![]() ![]() |
|||
![]() |
|
CandyMan 21 Aug 2012, 17:58
This will only be working in pure dos (DOSEMU).
_________________ smaller is better |
|||
![]() |
|
rugxulo 25 Nov 2012, 01:27
news://comp.lang.pascal.borland is probably a better place (though it's quite empty these days and users of FPC for Go32v2 [DOS] are ever rarer).
Try looking at sources to Blocek (esp.VenomGfx) for inspiration. Also, there are a lot of Pascal users (including aforementioned) at BTTR's forum. The problem is that pmode is complicated and requires you to allocate a selector and point a descriptor?? to it (or some such). Some explicitly allocate $A000:0 in advance due to popularity, but Go32v2 (DJGPP v2 extended via DPMI via CWSDPMI) doesn't by default. Or at least Go32v2 (DJGPP) isn't zero-based like WDOSX or similar Watcom-y extenders. It can definitely be done, but I'm not big on graphics, so I don't know personally. I would assume their (improved) Graph unit would support VGA out of the box. You can easily switch video modes via BIOS under DPMI with no problems (as long as you don't need addresses or translations or any direct read/write memory access). P.S. Moderators: this may be better off in the DOS subforum. |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2023, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.