flat assembler
Message board for the users of flat assembler.
Index
> DOS > Hello World without interrupts ? |
Author |
|
Dex4u 05 Nov 2006, 01:50
You mean like this ?
For real mode. Code: mov ax,0xB800mov es,axmov si,msg0mov di,(80 * 1 + 2) * 2mov cx,25cldrep movsb;some more code heremsg0: db " H E L L O W O R L D ! " Needs to be a bit differant for pmode (linux). NOTE: also linux exit its programs differant and users differant file formats. |
|||
05 Nov 2006, 01:50 |
|
rugxulo 05 Nov 2006, 03:12
http://www.deater.net/weave/vmwprod/asm/
Quote:
Last edited by rugxulo on 05 Nov 2006, 22:10; edited 2 times in total |
|||
05 Nov 2006, 03:12 |
|
vid 05 Nov 2006, 16:47
2: without OS calls, you must write to video memory yourself. and linux disallows you to do this, it forces you to use call to OS (or driver)
|
|||
05 Nov 2006, 16:47 |
|
2 05 Nov 2006, 21:37
What I don't get is how they make booters that do stuff without an OS !
That's so cool. |
|||
05 Nov 2006, 21:37 |
|
Dex4u 05 Nov 2006, 23:41
2 wrote: What I don't get is how they make booters that do stuff without an OS ! I have alway wondered how they do that, too. |
|||
05 Nov 2006, 23:41 |
|
Maurício Pezzotta 06 Nov 2006, 10:14
What's the problem with that? You just have to move something from disc into RAM.
|
|||
06 Nov 2006, 10:14 |
|
eek 06 Nov 2006, 12:34
Code: org cs:100 ;hello world HWORLD nop ;ZRS mov bp,B800 ; VIDEO segment i.e.the screen page mov es,bp ;to ES mov di,722 ;page offset ie page position mov si,HW ;si to message position mov cx,C ;loop x 12 times loop mov bp,0 ;didn't need this actually..... mov al,b[bp+HW] ;or this.........doh movsb ;copies DS:SI to ES:DI and increments mov al,0F ;black background stosb ;prints al loopnz loop ret HW ch10 HeLlo WoRlD END It wont upload executables here, just change the extension from txt to com
|
|||||||||||
06 Nov 2006, 12:34 |
|
Dex4u 06 Nov 2006, 15:25
Maurício Pezzotta wrote: What's the problem with that? You just have to move something from disc into RAM. WOW, Your right Maurício Pezzotta, I tryed what you said and worked all night and made this http://www.dex4u.com/ Thanks . |
|||
06 Nov 2006, 15:25 |
|
2 20 Nov 2006, 00:56
How on earth would you load it before the OS starts?
It would be cool if I had some kind of ASCII decoration that shows up when I turn the PC on. _________________ There are 10 kinds of people in the world. Those who know binary and those who haven't met me. |
|||
20 Nov 2006, 00:56 |
|
Dex4u 20 Nov 2006, 15:36
2 do you have a floppy drive on you pc ?.
|
|||
20 Nov 2006, 15:36 |
|
Octavio 21 Nov 2006, 13:15
2 wrote: How on earth would you load it before the OS starts? The Basic Input Output System is always loaded in memory, is like a very simple OS used to boot the computer and load another program (usually on the disk memory) wich loads the OS. The BIOS services are explained on http://www.ctyme.com/rbrown.htm For me it woult be cool if the PC booted so fast that i don´t have time to read any ASCII decoration |
|||
21 Nov 2006, 13:15 |
|
2 10 Dec 2006, 05:51
Quote:
Yes,but most people don't these days from what I hear. They don't make PCs with floppy drives much anymore. I like floppies,but they get damaged easily. but still,putting a program on a floppy disk wouldn't do anything unless you had it boot DOS and run a COM file. That's pretty neat,but you're still depending on an OS to do that. |
|||
10 Dec 2006, 05:51 |
|
Matrix 10 Dec 2006, 06:04
2 wrote:
hi 2 you might wanna try booting from cd/cd-rw? you can burn a boot cd with 1.44MB emulation, and boot the floppy image. |
|||
10 Dec 2006, 06:04 |
|
Dex4u 10 Dec 2006, 17:53
2 wrote:
There is no Dos, just your own OS, you code yourself, to run the file . |
|||
10 Dec 2006, 17:53 |
|
2 18 Dec 2006, 03:06
Quote:
You mean it's possible to burn a floppy image to a CD and actually boot from it?! That does change things. I'll remember that. |
|||
18 Dec 2006, 03:06 |
|
Dex4u 18 Dec 2006, 03:15
You open up your burn cd software, click on the make bootable, it will ask for a image. Point it to your bootable floppy image, it will add 2 files to the cd both .bin
You can add more stuff to the cd ( but you will not beable to get to it, with out a atapi driver from your boot code). That all there is to it, you can also do the same with a hdd image (must be able to fit on the cd). |
|||
18 Dec 2006, 03:15 |
|
2 18 Dec 2006, 04:58
Of course,that assumes you're using the correct software to burn these CDs. Now booting a hard drive image from the CD sounds like an idea.
It's so cool! BTW,I was looking at DexOS,I might try it sometime. Always busy doing something. I program the 6502 CPU as well as intel. I use a cool simulator to do things. Right now I'm working on something really creepy in DOS. |
|||
18 Dec 2006, 04:58 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.