Recent Posts

Pages: [1] 2 3 4
1
Sol_Asm / Re: Error creating unicode string
« Last post by bogdanontanu on July 08, 2018, 04:16:48 PM »
Hi kaiser,

There is a new version released: v0.36.76 that fixes this issue / bug with UTF-8 Chinese unicode stings

http://www.oby.ro/sol_asm/files/sol_asm_2018_07_08_v0_36_76.zip
2
Sol_Asm / Re: Error creating unicode string
« Last post by bogdanontanu on July 07, 2018, 11:35:35 PM »
String subscription source code
Code: [Select]

/*86*/ numerror du "Định dạng số hexa khng đng",0
/*87*/ formaterror du "Lỗi cấu trc",0
;numerror du "num error",0
;formaterror du "input error",0
formatfilein du "input file error",0
formatfileout du "output file error",0

Returned error code
Code: [Select]
**Error** PartCopy.asm(86) DU, empty string: ịnh dạng số hexa không đúng
**Error** PartCopy.asm(87) DU, empty string: ỗi cấu trúc

Thanks for the example, this will be fixed fast.
3
Sol_Asm / Re: Error creating unicode string
« Last post by kaisermtv on June 23, 2018, 11:12:04 AM »
String subscription source code
Code: [Select]

/*86*/ numerror du "Định dạng số hexa khng đng",0
/*87*/ formaterror du "Lỗi cấu trc",0
;numerror du "num error",0
;formaterror du "input error",0
formatfilein du "input file error",0
formatfileout du "output file error",0

Returned error code
Code: [Select]
**Error** PartCopy.asm(86) DU, empty string: ịnh dạng số hexa không đúng
**Error** PartCopy.asm(87) DU, empty string: ỗi cấu trúc
4
Sol_Asm / Re: Error creating unicode string
« Last post by bogdanontanu on June 22, 2018, 12:26:59 AM »
Hi Bogdan.
When I declare a unicode string, an error occurs with the utf-8 format
Code: [Select]
**Error** PartCopy.asm(35) DU, empty string: ịnh dạng số hexa không đúng
**Error** PartCopy.asm(36) DU, empty string: ỗi cấu trúc
Hope you can fix it soon

Hi,
Do you have an example source code that creates this error?
What was the "du" string?
5
Sol_Asm / Error creating unicode string
« Last post by kaisermtv on June 21, 2018, 07:00:09 AM »
Hi Bogdan.
When I declare a unicode string, an error occurs with the utf-8 format
Code: [Select]
**Error** PartCopy.asm(35) DU, empty string: ịnh dạng số hexa không đúng
**Error** PartCopy.asm(36) DU, empty string: ỗi cấu trúc
Hope you can fix it soon
6
Sol_Asm / Re: jump short
« Last post by bogdanontanu on June 20, 2018, 10:03:49 PM »
I want to make a partition for the floppy. This makes it easier for me to manage files and code.
So the task of bootload (512 bytes) is to load a file "BOOT" up to start phase 2

Hi keiser,

A partition for the floppy is kind of unusual. You can have files on a floppy. But usually there is no partition on a floppy.
A HDD does have a partition table and one or more partitions.

It is OK to arrange your files like that.

However it might be a task that is too complicated for the first 512 bytes.
I guess that it can be done for FAT12, maybe even for FAT32. I doubt it can be done for NTFS.

Anyway it will be complicated and cumbersome to try and fit a real filesystem read in 512 bytes :D

I still think it is better to read some stage 2 code in and then let that stage 2 code implement a filesystem and read files from boot floppy or boot HDD if you want to.

Just my personal opinion of course ;)

You are free to try. I have heard that some people have succeed in doing this.

However I personally would not do it.
It is IMHO too complicated to fit good (bug free) filesystem reading code in just 512 bytes or less ;)

7
Sol_Asm / Re: jump short
« Last post by kaisermtv on June 20, 2018, 11:36:58 AM »
I want to make a partition for the floppy. This makes it easier for me to manage files and code.
So the task of bootload (512 bytes) is to load a file "BOOT" up to start phase 2
8
Sol_Asm / Re: jump short
« Last post by bogdanontanu on June 18, 2018, 02:08:57 PM »
Hello sir Bogdan.
I'm having trouble with my bootloader code.
The code size after the build exceeds 512 bytes.
You can optimize jump functions in 16bit mode
Code: [Select]
je label ; 4byte "0F 84 XX XX"
je short label ; 2byte "74 XX"

Code: [Select]
jmp label ; 3byte "E9 XX XX"
jmp short label  ; 2 byte "EB XX"

If you can provide or add the following functions in 16bit mode
Code: [Select]
ljmp segment:offset ; jmp segment:offset

mov {reg},[es:{reg}] ; mov ax,[es:di]
mov {reg},[ss:{reg}] ; mov ax,[ss:di]

cmpsb



Hi kaiser,

Thanks for checking this,
I will check it out and see if I can improve the size of the 16 bits encodings.
I will also add the missing long jump and cmpsb instructions.

Meanwhile
I also have bootloader code in Solar_OS (same 512 bytes) and I have managed to fit the code in there.

However I did not try to add all the code in there.

The general advice here is to simply load a 2nd stage boot loader code with a bigger size.

For example in my boot loader I load 24 sectors for 12Kilo bytes right after the boot loader.
And then I jump to that code ;)

This way I avoid trying to stuff all the boot loader code in the first 512 bytes



9
Sol_Asm / jump short
« Last post by kaisermtv on June 08, 2018, 09:21:23 PM »
Hello sir Bogdan.
I'm having trouble with my bootloader code.
The code size after the build exceeds 512 bytes.
You can optimize jump functions in 16bit mode
Code: [Select]
je label ; 4byte "0F 84 XX XX"
je short label ; 2byte "74 XX"

Code: [Select]
jmp label ; 3byte "E9 XX XX"
jmp short label  ; 2 byte "EB XX"

If you can provide or add the following functions in 16bit mode
Code: [Select]
ljmp segment:offset ; jmp segment:offset

mov {reg},[es:{reg}] ; mov ax,[es:di]
mov {reg},[ss:{reg}] ; mov ax,[ss:di]

cmpsb


10
Sol_OS / Re: Started Solar_OS x64 development
« Last post by bogdanontanu on May 10, 2018, 02:20:54 AM »
But there is a lot of debugging going on in the background:

link:
http://www.oby.ro/os/images/x64/VirtualBox_sol_os_asm_64_09_05_2018_23_44_30.png

Pages: [1] 2 3 4