flat assembler
Message board for the users of flat assembler.

Index > MenuetOS > My first simple app for MenuetOS 64-bit

Author
Thread Post new topic Reply to topic
FlierMate



Joined: 21 Jan 2021
Posts: 129
FlierMate
I am excited and just successfully created a simple app for MenuetOS 64-bit by modifying existing example source code.

What this app does is to display processor brand in the window.
(I haven't figure out how to save my file to USB drive, so....)

Well done, to the team of MenuetOS!!


Description: My first app for MenuetOS 64
Filesize: 834.29 KB
Viewed: 772 Time(s)

Screenshot_2021-10-20_20-11-39.png


Post 20 Oct 2021, 12:16
View user's profile Send private message Visit poster's website Reply with quote
macgub



Joined: 11 Jan 2006
Posts: 260
Location: Poland
macgub
If on your machine works Menuet's USB you are lucky. I wish you many, perhaps more complex apps for Menuet. Exclamation BTW You run MeOS on virtual machine or on real hardware? I gues this second - fun. Very Happy
Post 20 Oct 2021, 17:53
View user's profile Send private message Visit poster's website Reply with quote
FlierMate



Joined: 21 Jan 2021
Posts: 129
FlierMate
macgub wrote:
If on your machine works Menuet's USB you are lucky. I wish you many, perhaps more complex apps for Menuet. Exclamation BTW You run MeOS on virtual machine or on real hardware? I gues this second - fun. Very Happy


Thanks for your encouragement to create more complex apps for MenuetOS.

Yes, I run MenuetOS on real hardware, the same old laptop that can also run Windows 10 21H1 and Debian 11 (Linux).

What I did is use following command to burn to a 32GB USB flash drive:
Code:
dd if=M6413940.IMG of=/dev/sdb1    


Then boot from USB during BIOS startup, (but I have to edit configuration file to enable USB keyboard and USB mouse)

I am happy! BTW, I can also run MenuetOS on virtual machine using QEMU:
Code:
qemu-system-x86_64 -fda M6413940.IMG    


I prefer to boot from real hardware although the keyboard mapping is slightly wrong (i.e. punctuation mark and symbol).

So, not every computer can boot MenuetOS 64-bit? I will post more on here if I able to save files (e.g. screenshots and .ASM files) back to the same USB flash drive from within MenuetOS. Very Happy
Post 20 Oct 2021, 20:45
View user's profile Send private message Visit poster's website Reply with quote
macgub



Joined: 11 Jan 2006
Posts: 260
Location: Poland
macgub
Quote:

So, not every computer can boot MenuetOS 64-bit?

For sure I can tell only about my machine. I can boot from USB, via unetbbootin. This is not emulation floppy mode, so I cannot save floppy image on USB . ( maybye I am wrong ?). And I cannot acces usb full storage, load and store data, only floppy image witch resides in RAM... Sadly my virtualbox, i update many times is broken and probably to make its working I must reinstal Windows. I dont remember if even from VirtualBox USB 2.0 emulation I have acces to usb storage. In additin MeOS on real hardware not see my mouse, sound is problem too.
Quote:

I can also run MenuetOS on virtual machine using QEMU

Are you able acces USB storage from qemu? Will be fine if you share with others appropiate command.
[/quote]
Post 21 Oct 2021, 14:57
View user's profile Send private message Visit poster's website Reply with quote
macomics



Joined: 26 Jan 2021
Posts: 169
Location: Russia
macomics
macgub wrote:
Are you able acces USB storage from qemu? Will be fine if you share with others appropiate command.
He has already shared
FlierMate wrote:
Code:
qemu-system-x86_64 -fda M6413940.IMG    
It does not load qemu from USB flash, it uses an image file (Floppy drive).
Post 21 Oct 2021, 16:24
View user's profile Send private message Reply with quote
FlierMate



Joined: 21 Jan 2021
Posts: 129
FlierMate
macgub wrote:

so I cannot save floppy image on USB ...... And I cannot acces usb full storage, load and store data, only floppy image witch resides in RAM... S


I found ways to save files back to the floppy image on USB drive, but only on real hardware.

I need to enable USB 2.0, among others:
Code:
usb_enable              = 0x000001 
usb_legacy_disable      = 0x000001 
usb_ehci_cache_mode     = 0x000001 
usb_ohci_enable         = 0x000001  
usb_uhci_enable         = 0x000001  
fd_1_enable             = 0x000001
fd_1_write              = 0x000001 
keyboard_layout         = 00000002  
    


Then I will be able to save small files back to the 1.5MB floppy disk image on my USB drive using Cache2Usb program. Hooray!

macgub wrote:

Are you able acces USB storage from qemu? Will be fine if you share with others appropiate command.


Still no luck on this one, sorry, I was unable to access USB storage from QEMU.

This is my latest commands:
Code:
qemu-system-x86_64 -m 2048 -usb -fda *****.IMG    



macomics wrote:

It does not load qemu from USB flash, it uses an image file (Floppy drive).


Thank you for your help, although I think macgub was asking how to save files back to the USB drive.[/code]


Description: Use CACHE2USB can save small file back to the Floppy disk image on my USB flash drive
Filesize: 1.05 MB
Viewed: 654 Time(s)

Screenshot_2021-10-22_20-27-18.png


Description: I can see USB flash drive but only one out of the two were mapped as "/USB/1"
Filesize: 631.84 KB
Viewed: 654 Time(s)

Screenshot_2021-10-22_20-26-58.png


Post 22 Oct 2021, 12:36
View user's profile Send private message Visit poster's website Reply with quote
FlierMate



Joined: 21 Jan 2021
Posts: 129
FlierMate
New Update!!!

I can now load files from and save files to large USB flash drive. It does not matter FAT12 or FAT32. But I must plug in the second USB flash drive before the MenuetOS loads.
Post 22 Oct 2021, 14:12
View user's profile Send private message Visit poster's website Reply with quote
macgub



Joined: 11 Jan 2006
Posts: 260
Location: Poland
macgub
Thanks for your replies.

Quote:

macomics wrote:

It does not load qemu from USB flash, it uses an image file (Floppy drive).


Thank you for your help, although I think macgub was asking how to save files back to the USB drive.[/code]

Yes, you guess what I mean. I tried many options to acces USB memory on real hardware, many times - no luck. I just thought, qemu is the solution. Perhaps I must buy more compatibile computer. BTW What brand of machine are you using? Maybye ASUS?
Best wishes!
Post 22 Oct 2021, 15:59
View user's profile Send private message Visit poster's website Reply with quote
FlierMate



Joined: 21 Jan 2021
Posts: 129
FlierMate
macgub wrote:
Thanks for your replies.

Yes, you guess what I mean. I tried many options to acces USB memory on real hardware, many times - no luck. I just thought, qemu is the solution. Perhaps I must buy more compatibile computer. BTW What brand of machine are you using? Maybye ASUS?
Best wishes!


You're most welcomed.

I am using an old laptop ASUS K40IN (Intel Core2 Duo T660 CPU) dated back to Nov 2009. This laptop has only legacy BIOS boot mode.
macgub, did you try to plug in the second USB flash drive before computer is starting? I think MenuetOS does not support plug and play, that's why I must plug it in first during BIOS POST.

I think you too can use the following approach:
1) 1st USB drive is burned with MenuetOS 64-bit floppy image (FAT12). So, if you open in other OS, you will see this drive as 1.4MB only (no matter how large your USB drive is)
2) 2nd USB drive for read / write access using MenuetOS 64, but must enable USB 2.0 , etc.

Thank you for your well wishes. BTW, your 3D programs on your homepage look amazing to me.


Description: Screenshot captured in MenuetOS 64 and saved by Draw as BMP, then converted to PNG using Linux.
Filesize: 128.17 KB
Viewed: 617 Time(s)

CAPTURE3.PNG


Post 22 Oct 2021, 16:25
View user's profile Send private message Visit poster's website Reply with quote
macgub



Joined: 11 Jan 2006
Posts: 260
Location: Poland
macgub
Yes, I tried both options. AFAIK ASUS even now support legacy BIOS mode. So relative new machine will fit my needs.
Quote:

BTW, your 3D programs on your homepage look amazing to me.

I enjoy someone visit my page. This is the "kick" for me keep my site existing. ( I bit hesistate last times, someone take look at).
Stay safe in this crazy times.
Post 22 Oct 2021, 17:35
View user's profile Send private message Visit poster's website 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 can attach files in this forum
You can download files in this forum


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

Website powered by rwasa.