flat assembler
Message board for the users of flat assembler.
Index
> OS Construction > Porting fasm app to hobby OS's |
Author |
|
STLVNUB 04 May 2012, 22:53
Looking good
|
|||
04 May 2012, 22:53 |
|
Dex4u 15 May 2012, 15:25
Just for fun, i coded a linux ver of the FBasic demos:
Same code, just different include Code: include 'FBasic_L.inc' CLS COLOR 11 LOCATE 2,1 PRINT "This app is written in Macro Basic, for Linux " COLOR 12 LOCATE 2,2 PRINT "With the ease of Basic and the power of ASM " COLOR 15 LOCATE 2,3 PRINT "It user's the basic commands:" PRINT " " PRINT " CLS" PRINT " SCREEN" PRINT " COLOR" PRINT " LOCATE" PRINT " PRINT" PRINT " GOSUB" PRINT " RETURN" PRINT " SLEEP" PRINT " END" PRINT " " GOSUB TestSub SLEEP END TestSub: PRINT " Press any key to quit." RETURN Let me know if anyone wants the linux include. |
|||
15 May 2012, 15:25 |
|
JohnFound 15 May 2012, 17:59
I can include these macros in FreshLib if you don't mind. It seems it will be easy to integrate them in the FreshLib structure. They can be used for debugging purposes and for quick sketching of console applications.
What about variables? Can I print for example value of eax register? |
|||
15 May 2012, 17:59 |
|
Dex4u 15 May 2012, 19:17
JohnFound wrote: I can include these macros in FreshLib if you don't mind. It seems it will be easy to integrate them in the FreshLib structure. They can be used for debugging purposes and for quick sketching of console applications. Cool, the DexOS ver "can print for example value of eax register", that Stephen did, i will convert it to the Linux include and post you link to the includes. Stephen is working on add more command, so will be able to keep you up dated. |
|||
15 May 2012, 19:17 |
|
JohnFound 15 May 2012, 20:14
BTW, FreshLib is especially created to be portable. Do you think it can support DexOS?
It needs some low level and middle level functions to be supported by the OS: 1. dynamic memory allocations (heap). 2. Some basic graphics functions - lines and rectangles. 3. Basic windows functions - create, destroy, paint 4. file functions. |
|||
15 May 2012, 20:14 |
|
Dex4u 16 May 2012, 12:19
JohnFound wrote: BTW, FreshLib is especially created to be portable. Do you think it can support DexOS? Yes, the only one i see a problem is 1. "dynamic memory allocations (heap).", as in DexOS the App its self is in charge of memory allocations, and can use all memory from app load address, to top of memory (top of memory is amount of ram on sys, usable by a 32bit sys, less any drivers loaded). But there's ways around this, i could use the same method as used in the fasm port. |
|||
16 May 2012, 12:19 |
|
Stephen 16 May 2012, 14:42
Here's the file for the FASM macro basic that ran on DexOS 3
The stuff after that is lost. I've started working on updating and adding stuff. home.comcast.net/~dex-os/FBasDx01.zip It probably isn't going to work in DexOS 6 (pointers got renamed and a few are gone), but is what I'm cleaning up and taking off from. So it's a bit useless other then to look at. |
|||
16 May 2012, 14:42 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.