flat assembler
Message board for the users of flat assembler.
Index
> OS Construction > FASM Challenge - For all users Goto page Previous 1, 2, 3, 4, 5 ... 13, 14, 15 Next |
Author |
|
edfed 25 Jan 2008, 04:08
moi, j'aime bien les @@:
in english or in frensh, it's the same, i like @@: i feel good with it. insted of L1, L2, L3, L4, 0X33FC43A, +20, .for1, while2, etc... ça permet de tester pleins de combinaisons très rapidement, et d'écrire vite aussi. all that is loop or things like loops, are simpler with @@:, if you see @@: and @f somewhere, imagine it's a little diamond from functional diagram. ok, i'll try to comment these @@: or replace it with explicit symbols. ok, i'll code this hello world in vesa, without mouse but the fedit 1024*768 32 bits version. but i dislike this nothion of pm to rm switch to change resolution, and come back to pm... i dislike. i prefer to know the issue of the two previous vesa treads. Last edited by edfed on 25 Jan 2008, 04:20; edited 1 time in total |
|||
25 Jan 2008, 04:08 |
|
dosin 25 Jan 2008, 04:19
A browser that prints hello world would be fine! Just waiting on dex4u..
In the mean time I have been searching the net/library for specs..and anything that would help with the project... |
|||
25 Jan 2008, 04:19 |
|
tom tobias 25 Jan 2008, 13:21
edfed wrote: ...i like @@: It is not the infernal @@@@ itself that is WRONG for a specification document, ALL of the symbols in this quote above are incorrect. A "blueprint", or specification document needs to be: 1. Simple (remember Dex's point) 2. Readable 3. Complete 4. Accurate Our specification document will surely not be complete at the outset, but, by the end of the first prototype, it will be complete. I am confident that it will be accurate. My worry is that it will not be readable. Readability is a critical parameter, and whether one uses @@@, or L1, L2, L3, etc, ad nauseum, or any other combination of symbols and letters to produce CODE, not readable words, the end result is chaos, not a specification document. As far as I am concerned the program, (aka "code") itself, ALSO ought not contain ANY such symbols. edfed wrote: ok, i'll try to comment these @@: or replace it with explicit symbols. A. What we are doing, B. Why we are doing it, C. HOW we intend to accomplish this task. ********* SYMBOLS (of any type, shape, or ethnicity) have no absolutely no role to play in such a document. We can rely ONLY upon WORDS. English words. Sigh, gasp. Ugh. Sorry about that. ********** ONLY WORDS, not symbols are required for such an overview. In my opinion, you and many other FASM forumers need to learn how to write programs, instead of code. edfed wrote: ...but i dislike this nothion of pm to rm switch to change resolution, and come back to pm... i dislike. ... |
|||
25 Jan 2008, 13:21 |
|
edfed 25 Jan 2008, 13:51
i've cleaned up the vesademo, but it bugs...
|
|||
25 Jan 2008, 13:51 |
|
dosin 25 Jan 2008, 20:39
Displaying the fasm forum would be nice but I think we should start more simple..
A basic HTML web page no images,etc... That way its not a build me a browser and see what people can do with it!! That way if people download the fin project - they would need to add themselfs the support for images,etc.. The prob that I think dex.. was thinking .. would we need support for .gif,jpeg,etc. lets keep it simple! get it online and diplay a current html webpage with text and tables /and possible buttons..only... Quote: i've cleaned up the vesademo, but it bugs... Thats cool - what Vesa mode are you using? and what kind of bugs? If you need help just let me know... Also if you want we could keep it real simple with no support but just text .. We would not need Vesa at all and use a text mode... The idea is to load the kernel and enable connections..send request.. wait.. retrieve data and display it from the net... as quickly as possible... |
|||
25 Jan 2008, 20:39 |
|
edfed 25 Jan 2008, 21:09
the resolution of my laptop, 1024*768 32 BPP
but it don't work at all. i've cleaned it, arrange it in little modules. easier to debug for me. it should display an incremented byte per component. inc al mov [fs:edi],al it's exactlly the manner i use to print on screen. and i set the segment to screen memory. but don't display anything. only the text cursor blinking. about no need of vesa: it's because i don't code for vesa high modes that i lose motivation. be able to boot and display great colors in high resolution... what a satisfaction it could be for me.
|
|||||||||||
25 Jan 2008, 21:09 |
|
bitRAKE 26 Jan 2008, 00:12
edfed wrote: i've cleaned it, arrange it in little modules. easier to debug for me. |
|||
26 Jan 2008, 00:12 |
|
edfed 26 Jan 2008, 01:51
i don't make it on an emulator, i test it only in real boot...
it's boring. |
|||
26 Jan 2008, 01:51 |
|
dosin 26 Jan 2008, 02:20
Quote: text cursor blinking I tried it and I got the same thing... Its not setting the mode.. Tomarrow or maybe later tonight- I am going to go over the code... or if you want print a 1,2,3,etc.. after each function.. find out were its getting stuck.. Code: call func_1 mov ax,8h mov es,ax mov byte [es:0xB8000], "1" call func_2 mov ax,8h mov es,ax mov byte [es:0xB8000], "2" etc.. |
|||
26 Jan 2008, 02:20 |
|
edfed 26 Jan 2008, 02:35
it doesn't read the vesa info correctly, says i don't have vesa 2+
|
|||
26 Jan 2008, 02:35 |
|
sinsi 26 Jan 2008, 02:39
Code: mov eax,4f02h mov ebx,4118h int 10h Don't forget that mode 0118 is 1024x768 in 24-bit, not 32-bit, and quite a few of the newer ati/nvidia cards don't support 24-bit colour (in VESA). |
|||
26 Jan 2008, 02:39 |
|
edfed 26 Jan 2008, 03:15
but what is 32?
|
|||
26 Jan 2008, 03:15 |
|
sinsi 26 Jan 2008, 03:33
Use the VESA.VideoModePtr pointer to loop through the modes, and use Mode.XResolution,Mode.YResolution and Mode.BitsPerPixel to find a mode.
From RBIL Quote:
FWIW, 1024x768x32 is mode 0123h on my radeon 9600... |
|||
26 Jan 2008, 03:33 |
|
Dex4u 26 Jan 2008, 12:17
Here is the template for the FBrowser (code name for this project, until we have a name). It does not do much, but it is set out to be simple and easy for beginner to understand, i have set the main functions into include files.
You can comment it better or make the labels more readable, but the layout must stay the same. This demo simple test for vesa, then if presant goes to pmode, set A20, vesa and prints a message in vesa mode 800*600 24/32 bpp. You can change the mode, but for now that is the screen size for the project. Once you press a key it will return to real mode and return to dos (as it can be run from dos) or reboot if run from its bootloader. It comes with full source code. Stage 2. I am now working on a skinable browser, to start with, i just want to get the gui working right, as this will get others interested. I agree with points made by tom tobias and agree with dosin, that the first test of the project, will be to load a hello world html page off the net. Here is a self extracting exe to put it on a floppy http://www.dex4u.com/FBrowser/FBrowser.zip Here is a floppy image and .bat file to test it in a emulator qemu. http://www.dex4u.com/FBrowser/FBrowserE.zip
|
|||||||||||
26 Jan 2008, 12:17 |
|
edfed 26 Jan 2008, 14:36
yeah...
but when i browse fasm via ie6, the optimal resolution is 1024*768 i'll add an hidden menu, like press ctrl at boot load, and display the menu. if no ctrl, direct boot. It's pretty a good job but it depend on fat and exe shemes. |
|||
26 Jan 2008, 14:36 |
|
tom tobias 26 Jan 2008, 15:00
edfed wrote: ...It's pretty a good job but it depend on fat and exe shemes. ... DEX: great job....Thanks for your effort, really well done. Dosin: thanks for hanging in there... sinsi: I appreciate your comment, did know about RBIL, though, not by that acronym, and did not think to check his list to address edfed's question!!! Ralf Brown Interrupt List, for anyone else out there who may be half brain dead like me... As far as fat and exe, edfed, take a look at the heading for this thread under the FASM forum, it is "OS Construction", so, please, be patient, eventually we will have the proper FASM OS, with protected mode access to motherboard components, but for now, let's not be too nervous about those improvements which surely will evolve over time, and instead focus on the task at hand, admirably commenced by Dex.... |
|||
26 Jan 2008, 15:00 |
|
dosin 26 Jan 2008, 18:59
Quote: It needs a tcp/ip stack Is there a standard - I have found some info/examples on these and they don't spec any particular device.. Was there a couple of particular devices we were going to target ? If so Lets get a list about 4 of them? For me I don't care which devices are chosen...just let me know.. I just want to make sure I target the same info as everyone else! |
|||
26 Jan 2008, 18:59 |
|
edfed 26 Jan 2008, 19:33
i think we need to analyse the network drivers from menuet...
thank you ville! how can we determine the optimal screen/graphic card mode? if a screen or a card don't support 1024 (it exists), we shall make an automatic choise to the best couple. a basic function interface is needed too. like: Code: mov esi,int10 call video ... int10: .eax dd 0 .ebx dd 0 .ecx dd 0 .edx dd 0 .esdi dd 0:0 ... video: ;esi=>int10 params. mov eax,[esi+0] mov ebx,[esi+4] mov ecx,[esi+8] mov edx,[esi+12] mov edi,[esi+16] mov es,di shr edi,16 int 10h ret .... this will increase the simplicity of vesa programing, as i find vesa very complex, it is really boring. |
|||
26 Jan 2008, 19:33 |
|
dosin 26 Jan 2008, 20:43
edfed:
Does Dex4u- Demo work on your OS? |
|||
26 Jan 2008, 20:43 |
|
Goto page Previous 1, 2, 3, 4, 5 ... 13, 14, 15 Next < Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.