generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: How make a operating system [TUT] [MADE BY FERGO]

Previous Thread :: Next Thread 
dapbetatester is not online. dapbetatester
Joined: 18 Jan 2010
Total Posts: 1321
14 Jul 2011 04:58 PM
Be sure to try convert it to a CD, Cause it only works at a disket at now.
Gonna post the code here:

Boot loader:

org 7C00h ;organiza o offset
;inicialização da pilha
mov ax, 07C0h
mov ss, ax ;seta o SS para 07C0h
mov sp, 03FEh ;aponta para o topo da pilha
;seta segmento de dados
xor ax, ax ;zera AX
mov ds, ax ;seta o segmento de dados par 0000h
;altera o modo de vídeo
mov ah, 00h ;subfucao para setar modo de vídeo
mov al, 03h ;03h = 80x25, 16 cores
int 10h ;interrupt de vídeo
;le dados do disquete
mov ah, 02h ;subfunção de leitura
mov al, 1 ;numero de setores para ler
mov ch, 0 ;trilha ( cylinder )
mov cl, 2 ;setor
mov dh, 0 ;cabeça
mov dl, 0 ;drive ( 00h = A: )
mov bx, 0800h ;ES:BX aponta para o local da memória_
mov es, bx ;onde vai ser escrito os dados_
mov bx, 0 ;0800:0000h ( ES = 0800h, BX = 0000h )
int 13h ;interrupt de disquete
jmp 0800h:0000h

Kernel:
org 0000h ;organiza o offset

push cs ;CS = endereço do programa atual
pop ds ;DS = CS
call clearscreen ;chama procedure de limpar a tela
lea si, Mensagem ;SI = endereço da mensagem
mov ah, 0Eh ;subfuncao para imprimir caractere
repetição:
mov al, [si] ;move para AL o caractere em SI
cmp al, 0h ;compara com 0 ( fim da string )
jz terminou ;caso terminou, pule para ‘terminou’
int 10h ;interrupção de video
inc si ;próximo caractere
jmp repetição ;repete o processo ate achar o 0
terminou:
mov ah, 0h ;subfuncao de aguardar tecla
int 16h ;interrupção de teclado
mov ax, 0040h ;método de reboot consiste em setar_
mov ds, ax ;o valor do endereço 0040:0072h_
mov w.[0072h], 1234h ;para 1234h e pular para o endereço_
jmp 0FFFFh:0000h ;FFFF:0000h
clearscreen proc ;procedure de limpar a tela
pusha ;coloca todos os reg na pilha
mov ah, 06h ;subfuncao de rolar a tela pra cima
mov al, 0 ;limpa a tela
mov bh, 0000_1111b ;seta as cores ( fundo_texto )
mov ch, 0 ;linha do canto sup. esq.
mov cl, 0 ;coluna do canto sup. esq.
mov dh, 19h ;linha do canto inf. dir. ( 25 )
mov dl, 50h ;coluna do canto inf. dir. ( 80 )
int 10h ;interrupção de vídeo
popa ;repõe os valores dos registradores
ret ;retorna para o código
clearscreen endp
Mensagem db ‘Meu primeiro SO’,0 ;nossa string que vai ser exibida
Report Abuse
nickmaster24 is not online. nickmaster24
Joined: 04 Oct 2008
Total Posts: 8906
14 Jul 2011 05:00 PM
Lol; my browser asked me if I wanted to translate the page into English because it was in Portuguese...
Report Abuse
dapbetatester is not online. dapbetatester
Joined: 18 Jan 2010
Total Posts: 1321
14 Jul 2011 05:01 PM
@Nick
Fergo is brazilian, And that ends people saying "Brazilians are dumb."
Report Abuse
NecroBumpist is not online. NecroBumpist
Joined: 12 Sep 2010
Total Posts: 4198
14 Jul 2011 05:03 PM
I doubt a few lines of assembly is going to make a good bootloader or kernel.

But brofist for NASM syntax.
Report Abuse
Camoy is not online. Camoy
Joined: 21 May 2009
Total Posts: 6207
14 Jul 2011 05:03 PM
I concur Necro
Report Abuse
dapbetatester is not online. dapbetatester
Joined: 18 Jan 2010
Total Posts: 1321
14 Jul 2011 05:04 PM
@Necro
Thats a simple OS written in Assembly, If you want more you need make a bootloader that loads C, That is more easier. Also this is not a Windows or Linux equivalent, Its a example.
Report Abuse
TectonInd2 is not online. TectonInd2
Joined: 28 Jul 2010
Total Posts: 1649
14 Jul 2011 05:39 PM
What architecture is that made for?
Report Abuse
LocalChum is not online. LocalChum
Joined: 04 Mar 2011
Total Posts: 6906
14 Jul 2011 05:44 PM
512 bit processors. :l
Report Abuse
mattchewy is not online. mattchewy
Joined: 19 Feb 2008
Total Posts: 7300
14 Jul 2011 05:48 PM
Lol, it's not like he didn't just go and copy paste this off the internet...

br(.)groups(.)yahoo.com/group/assembly-br/message/1301
Report Abuse
Danster5oo is not online. Danster5oo
Joined: 27 Aug 2010
Total Posts: 10003
14 Jul 2011 05:48 PM
900q bit processors are better, chum.
Report Abuse
blocco is not online. blocco
Joined: 14 Aug 2008
Total Posts: 29474
14 Jul 2011 05:52 PM
The comments are in a different language, fail
Report Abuse
dap300 is not online. dap300
Joined: 23 Nov 2009
Total Posts: 4738
14 Jul 2011 05:54 PM
[ Content Deleted ]
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image