flat assembler
Message board for the users of flat assembler.
 Home   FAQ   Search   Register 
 Profile   Log in to check your private messages   Log in 
flat assembler > OS Construction > DVD-RW run on a bare system - FASM

Author
Thread Post new topic Reply to topic
orock



Joined: 14 Dec 2016
Posts: 2
Location: Україна
DVD-RW run on a bare system - FASM
Good day to you !!
Good wishes, respect you impressively.

My computer drive, and I want to run Disk DVD-RW independently, program it to start and execute my program out of it.
What would Disk DVD-RW run like operating system, as a closer dos.
As this drive?
When disconnecting the DVD-RW hard drive in the BIOS is defined as the master. Or whatever it is. Main.

In sector 0 compile assembler


What else is needed? Why is not anything happening?


Code:

         
        use16
        org     0x7C00
        start:
                cli                     ; Запрещаем прерывания
                mov     axcs          ; Инициализируем сегментные регистры
                mov     dsax
                mov     esax
                mov     ssax
                mov     sp0x7C00      ; Т.к. стек растет в обратную сторону, то код не затрется
               
                mov     ax0xB800
                mov     gsax          ; Использовал для вывода текста прямой доступ к видеопамяти
               
                mov     simsg
                call    k_puts
               
                hlt                     ; Останавливаем процессор
               
                jmp     $               ; И уходим в бесконечный цикл
               
        k_puts:
                lodsb
                test    alal
                jz      MiMet1
                mov     ah0x0E
                mov     bl0x07                ; Серый на черном
                int     0x10
               
                jmp     k_puts
         
        MiMet1:
        ret
         
        msg     db 'Hello world'0x0d0x0a0
         
        times 510-($-$$db 0
                db 0x550xaa
                                
                                
;                               регистры общего назначения              AX, BX, CX, DX, BP, SI, DI, SP
;cегментные регистры           CS, DS, SS, ES
;счетчик команд                    IP
;регистр флагов                    Flags

;Каждое имя регистра несет некоторый смысл 

;A      accumulator             аккумулятор  
;B      base                    база 
;C      counter                         счетчик 
;D      data                    данные  
;BP     base pointer            указатель базы  
;SI     source index            индекс источника  
;DI     destination index               индекс приемника  
;SP     stack pointer           указатель стека  
;CS     code segment            сегмент команд 
;DS     data segment            сегмент данных 
;SS     stack segment           сегмент стека  
;ES     extra segment           дополнительный сегмент 
;IP     instruction pointer     счетчик команд

;Регистры AX, BX, CX и DX позволяют нам обращаться не к регистру а к старшему и младшему байту 

;AX     AH,AL
;BX     BH,DL
;DX     DH,DL
;CX     CH,CL


         


Post 14 Dec 2016, 10:57
View user's profile Send private message Reply with quote
orock



Joined: 14 Dec 2016
Posts: 2
Location: Україна
Another well. How can I debug a DVD-RW? Vindovs see not, and indeed, it is necessary to debug and verification. As a DVD-RW to debug and to treat it? what programs and methods that are for this?
I should windose XP SP3.
Post 14 Dec 2016, 11:25
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< 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


Powered by phpBB © 2001-2005 phpBB Group.

Main index   Download   Documentation   Examples   Message board
Copyright © 2004-2016, Tomasz Grysztar.