flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
Tolle 30 Mar 2004, 05:13
It's possible, but you will need to reassemble the kernel.
In kernel.asm you will find: Code: ... ; READ RAMDISK IMAGE FROM HD cmp [boot_dev],1 jne no_sys_on_hd mov [fat32part],1 ; Partition mov [hdbase],0x1f0 ; Controller base mov [hdpos],1 ; mov [0xfe10],dword 0 ; entries in hd cache mov [0x800000+1474560/1024],dword 0xffffffff mov ecx,41 hdbootl1: mov eax,hdsysimage mov ebx,12 mov edx,1 mov esi,0x90000 pusha call read_hd_file ... changing the mov [fat32part],1 to mov [fat32part],2 worked for me. Groenten, Tolle. |
|||
![]() |
|
Wishing 30 Mar 2004, 15:44
Idea ^_^
can we replace cmp [boot_dev],1 with cmp [boot_dev],1 ja next2 mov [fat32part],1 jmp here next2: cmp [boot_dev],2 ja next3 mov [fat32part],2 jmp here next3: cmp [boot_dev],3 ja next4 mov [fat32part],3 jmp here next4: cmp [boot_dev],4 jne no_sys_on_hd mov [fat32part],4 here: and have another question in bootcode.inc call printplan "Choose partition to read image from" call getkey dec al mov [es:boot_partition-0x10000],al this assumes you make a address 'boot_partition' in kernal.asm so that if you choose to boot from HDD you can choose which partition too ^_^ (just and idea.. doesnt seem too hard) Wishing |
|||
![]() |
|
LiuJunfeng 30 Mar 2004, 16:11
Must the Image file be in the root directory?
I'd like load it from "C:\boot\menuet.img" So write a complete solution for this problem |
|||
![]() |
|
Wishing 31 Mar 2004, 06:15
kinda demanding arent we? this is GPL.
|
|||
![]() |
|
LiuJunfeng 01 Apr 2004, 08:32
sorry, i can't say english very well
I mean suggestion. |
|||
![]() |
|
Wishing 02 Apr 2004, 04:30
No problem.. things like that happen... ill see what i can do.
_________________ 446f6c7068696e |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2023, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.