flat assembler
Message board for the users of flat assembler.

Index > OS Construction > Assembly OS that will boot after burned into CD.

Goto page Previous  1, 2, 3
Author
Thread Post new topic Reply to topic
l_inc



Joined: 23 Oct 2009
Posts: 881
l_inc 04 Aug 2014, 13:13
smiddy wrote:
I think if you search hard enough on here, someone has left a CDROM iso image that can be used for what he wants

I have a set of macros for creating bootable floppy and ISO-images. In the simplest case one would be able to compile an ISO-image with the following code:
Code:
format binary as "iso"

include 'eltorito.inc'

macro bootcode
{
    jmp 0:configure
    configure:
    xor ax,ax
    mov ds,ax
    mov es,ax
    cli
    mov ss,ax
    mov sp,7c00h
    sti
    
    mov ax,1300h
    mov bx,000Ah
    xor dx,dx
    mov cx,message.end-message
    call message.end
        message db 'Hello. I am your OS.'
    .end:
    pop bp
    int 10h
    @@:
        hlt
    jmp @B
}

iso_image bootcode
endii    


If there's a need to create a file/directory structure, one may use more advanced macro sets instead: "iso9660.inc" or "joliet.inc" . The tree definition syntax is pretty much the same as here. The relevant include files are attached.


Description:
Download
Filename: JOLIET.INC
Filesize: 38.09 KB
Downloaded: 675 Time(s)

Description:
Download
Filename: ISO9660.INC
Filesize: 25.56 KB
Downloaded: 679 Time(s)

Description:
Download
Filename: ELTORITO.INC
Filesize: 12.32 KB
Downloaded: 657 Time(s)


_________________
Faith is a superposition of knowledge and fallacy
Post 04 Aug 2014, 13:13
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  
Goto page Previous  1, 2, 3

< 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-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.