flat assembler
Message board for the users of flat assembler.

Index > OS Construction > FASM Challenge - For all users

Goto page Previous  1, 2, 3 ... , 13, 14, 15  Next
Author
Thread Post new topic Reply to topic
Dex4u



Joined: 08 Feb 2005
Posts: 1601
Location: web
Dex4u
Look forward to that dosin.
Post 17 Sep 2008, 15:49
View user's profile Send private message Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4242
Location: 2018
edfed
here the update of the shell in Rm.
i prefer to name the browser feeble.

contains a set of html files to test the parser


Description:
Download
Filename: browser.zip
Filesize: 143.46 KB
Downloaded: 165 Time(s)

Post 19 Sep 2008, 00:39
View user's profile Send private message Visit poster's website Reply with quote
dosin



Joined: 24 Aug 2007
Posts: 337
dosin
Thanks for the update-I will take a look! Very Happy
Post 19 Sep 2008, 02:08
View user's profile Send private message Reply with quote
dosin



Joined: 24 Aug 2007
Posts: 337
dosin
Update:
The parser is almost complete Very Happy

parser:
tested to parse all 96 tags - complete
tested for differnt styles of writing html-complete
functions for all 96 tags- complete - shells for them
tested parse for args- complete
tested reads all tags and converts to lower case.. case will not matter
same with the args - convert to lower case
tested not valid tag - complete example : < html> <-not valid because of space or <junk> in tag

still adding:
suport for css
suport for jscript parse - remove them at first..

this parser once done will allow for us to focus on the graphics - with out having to touch the parser code..

I have created functions for just about everthing we will need to work on programming the tags

example:
The args are copied into a string named args..is called during the parse;
the text for a tag will be in ntext string- called with : call text_pars
there is a tag_on_off - so it keeps track of start tag / end tag

Code:
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;16            <br>     
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
br:              pusha
               mov esi,new_line                        
            call  print_win
             call text_pars       ;will ckeck if another tag or get text 
                mov   esi,ntext                 ;load text 
         call  print_win                 ;and print it
               popa

            ret

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;45          <html>
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
html:               pusha
               cmp byte[tag_on_off_val],1          ;1=endtag
               je d1
               call text_pars                  ;get text if after tag = ntext -if tag -will not print anything- ntext set to 0
             mov   esi,ntext                 ;load text 
         call  print_win                 ;and print it in window
d1:              popa
                ret

    


I am going to fill as many of the functions as I can - to provide examples of programming them


Last edited by dosin on 24 Oct 2008, 18:50; edited 1 time in total
Post 24 Oct 2008, 05:21
View user's profile Send private message Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4242
Location: 2018
edfed
yeah dosin !

i'm impatient to see the code working and tehn, start to work with.
thanks.
Post 24 Oct 2008, 14:16
View user's profile Send private message Visit poster's website Reply with quote
dosin



Joined: 24 Aug 2007
Posts: 337
dosin
I just programed the <b> </b> tags works great.. we now have bold text..
and italic text <i> </i>
suported tags so far that work:
Code:
<html>Fbrowser test 1<br /><b><i>
Fbrowser TEST 2</i></b><br>Fbrowser test 3<br><i><br>Fbrowser test 4</i></html>
    


help needed:
An example for scrolling the text or methods.. in a window.. I have created the scroll bars and have them to were they will turn on if page greater than the window..

Just need to figure out a method for scrolling the window page.. if possible based on Fbrowser windows by dex,, just an idea to get started with it.. thanks in advance for any help!!
Post 24 Oct 2008, 18:49
View user's profile Send private message Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4242
Location: 2018
edfed
what i use for scrolling is a simple start pointer for text.

Code:
text db 'hello dosin, how are you?',10,13
db ' if you want to scroll text efficientlly, make it like we do',10,13
db ' just focus on the current first line of text you read ',10,13
db ' this 10,13 code is a LF + CR, like a new line of text',10,13
db ' then, to scroll, you seek the next or previous 10,13 code and will point to next or previous line',10,13
db ' i coded this in my code above',10,13
db ' it is efficient because it will start to read and display tex only where it is needed to do',10,13
db ' it is ok for vertical scrolling',13,10
db ' but granularity is "text vertical space"',10,13
db 'for horizontal scrolling, you will use a pixel based offset',10,13
db ' it is possible to use a pixel based vertical scrolling but it will be unefficient because read all the text before to display the last page, and will be bad because of vertial eyes movments ',10,13
db ' every good text viewer have have a char based scrolling',13,10
db ' and every good text viewer shall have the possibility to interpret "10,13"  "13,10"  "10"?  "13"? as the same thing.,10,13
db '',0
    


seek in browser/fool/event.inc/scrollu and scrolld.

but i insist on the fact that hml file shall be interpreted only one time, just to build a gui based presented text, and then, play with the converted file as if it was a simple gui or game.
Post 25 Oct 2008, 00:23
View user's profile Send private message Visit poster's website Reply with quote
dosin



Joined: 24 Aug 2007
Posts: 337
dosin
Thanks for the input - I am now working on all the colors... http://www.w3schools.com/tags/ref_colornames.asp

if the colors were just hex.. it would be better/easier .. but with color names supported..

color=red,color=green,color=blue..and so on..

if all goes well - all colors will be supported using names or hex..in a few weeks..
Post 25 Oct 2008, 01:18
View user's profile Send private message Reply with quote
dosin



Joined: 24 Aug 2007
Posts: 337
dosin
latest screen shot:
Image
Post 02 Nov 2008, 13:10
View user's profile Send private message Reply with quote
tom tobias



Joined: 09 Sep 2003
Posts: 1320
Location: usa
tom tobias
Smile
Post 02 Nov 2008, 13:29
View user's profile Send private message Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4242
Location: 2018
edfed
contest is a little in late but it is not important.
i think it will end in 3 years, the time to build every libraries needed t start the real contest:
Create THE web browser for x86 32 bits instruction set on a PC platform.
_able to boot in less than 10 seconds.
_stable and secure.
_OS like with a subset of extra features.
_ no size limit but speed and functional limits.

the isue of this contest should provide many differents browsers based or not on the same principle.
there are 3 base versions:
_dosin (inspired from dex)
_dex (inspired from dex but different)
_edfed (different)

maybe there will be another base.
the compatibility layer betwen avery versions is simple:
support and render HTML.
support .COM and .EXE dos programs.


i hope this contest to never end, and never die.
Post 20 Feb 2009, 17:41
View user's profile Send private message Visit poster's website Reply with quote
dosin



Joined: 24 Aug 2007
Posts: 337
dosin
I am still working on my version...

Quote:
hope this contest to never end, and never die.


I will not stop until its finished!!!!


update:
new win and buffer design
and using int 0x40+ for gui funtions...
will be building in the parser once graphics are fin...
for html apps..
1st gui windows app - hello world..

example:
Code:
jmp start
       tst: db "Hello world!",0
start:

       mov eax,10  ;X pos
       mov ebx,10  ;Y pos
       mov ecx,200 ;Y Size
       mov edx,200 ;X Size
       int 0x40                    ;draw window

       mov eax,0x00000000  ;black
       int 0x41                     ;clear window and fill color

      
      mov eax,75                ;text start x
      mov ebx,75                ;text start y
      mov esi,tst                 ;string
      mov edi,0x00FFFFFF    ;text color = white
      int 0x42                     ;print text

      int 0x45                     ;= window exit code from mouse click - on exit button      
      ret    


for graphics -
there is a built in win buff..
so all that needs to be done is draw to your temp buff and
the the function does the rest to display your gui program.....

mov esi, temp_buff
int 0x43 ;draw buffer to screen...

ret

temp_buff:

;;;;;;;;;;;;;;;;;;;
This makes graphics apps easy.. The size of the buffer diplayed
gets the values from the window int and then updates on resize or window move from the mouse ... This allows the programmer to work on the app and not all the
functions needed to display them.. I will be adding pixel functions and
support for images,fonts, ect....

The goal - a complete os with html and asm apps... that can access the web and display/interact with web pages...

I will be adding a gui command line interface also later on..

I no this is not exactly what the contest is about.. but it is neat project that could be finished the next year or will be very close to finished!


Last edited by dosin on 20 Feb 2009, 21:26; edited 1 time in total
Post 20 Feb 2009, 20:36
View user's profile Send private message Reply with quote
dosin



Joined: 24 Aug 2007
Posts: 337
dosin
Image

example of new look and hello world asm app with image of a fireball.bmp...
The desk top is being worked on!

I cant wait to have enough done so everyone can try it/test!
Post 20 Feb 2009, 21:21
View user's profile Send private message Reply with quote
Madis731



Joined: 25 Sep 2003
Posts: 2140
Location: Estonia
Madis731
Dosin, you remind me of the film "Crank" in a good way (http://www.imdb.com/title/tt0479884/)
Yeah, please don't stop Very Happy and if you get in trouble - ask the board Smile
Post 21 Feb 2009, 14:39
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4242
Location: 2018
edfed
can i test it now?
i have at least 4 news floppies test OSes and Applications..

i don't remember where i had it, but i've found the windows1.1 floppy installer.
it is fast to boot, but after, it is terribly slow because of Disk.

then, the size limit of the BROWSER executable is set to a maximum count of 128sectors or 64kbytes because it is very slow to load more with a flopy disk.
Post 28 Mar 2009, 12:19
View user's profile Send private message Visit poster's website Reply with quote
Dex4u



Joined: 08 Feb 2005
Posts: 1601
Location: web
Dex4u
You can see the TCP/IP stack that will be used in this project going through its pacers in DexOS http server.
http://www.youtube.com/watch?v=ErPDIG8HQno
Post 02 Apr 2009, 01:46
View user's profile Send private message Reply with quote
dosin



Joined: 24 Aug 2007
Posts: 337
dosin
Very cool! Cool
Post 02 Apr 2009, 02:39
View user's profile Send private message Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4242
Location: 2018
edfed
cool Smile
Post 02 Apr 2009, 16:21
View user's profile Send private message Visit poster's website Reply with quote
Dex4u



Joined: 08 Feb 2005
Posts: 1601
Location: web
Dex4u
Thanks Smile.
Post 03 Apr 2009, 03:51
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17719
Location: In your JS exploiting you and your system
revolution
It looks like Dell beat you all to it:
The Latitude Z has a fast "Latitude On" mode that boots up in under one second and gives you access to the Internet, email, your contacts and calendar, but does not allow access to other applications such as word processing or presentations.
What happened? Why did this project die?
Post 03 Oct 2009, 11:22
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  
Goto page Previous  1, 2, 3 ... , 13, 14, 15  Next

< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.