flat assembler
Message board for the users of flat assembler.

Index > 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: Україна
orock 14 Dec 2016, 10:57
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     ax, cs          ; Инициализируем сегментные регистры
                mov     ds, ax
                mov     es, ax
                mov     ss, ax
                mov     sp, 0x7C00      ; Т.к. стек растет в обратную сторону, то код не затрется
               
                mov     ax, 0xB800
                mov     gs, ax          ; Использовал для вывода текста прямой доступ к видеопамяти
               
                mov     si, msg
                call    k_puts
               
                hlt                     ; Останавливаем процессор
               
                jmp     $               ; И уходим в бесконечный цикл
               
        k_puts:
                lodsb
                test    al, al
                jz      MiMet1
                mov     ah, 0x0E
                mov     bl, 0x07                ; Серый на черном
                int     0x10
               
                jmp     k_puts
         
        MiMet1:
        ret
         
        msg     db 'Hello world', 0x0d, 0x0a, 0
         
        times 510-($-$$) db 0
                db 0x55, 0xaa
                                
                                
;                               регистры общего назначения              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: Україна
orock 14 Dec 2016, 11:25
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


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

Website powered by rwasa.