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
Thread Post new topic Reply to topic

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:
format binary as "iso"

include 'eltorito.inc'

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

iso_image bootcode

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.

Filename: JOLIET.INC
Filesize: 38.09 KB
Downloaded: 602 Time(s)

Filename: ISO9660.INC
Filesize: 25.56 KB
Downloaded: 603 Time(s)

Filesize: 12.32 KB
Downloaded: 587 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-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.