Recent Posts

Pages: 1 ... 8 9 [10]
91
Programming with NASM / Re: combining multiple asm files, mouse position
« Last post by fredericopissarra on March 29, 2019, 03:30:32 PM »
PS: Sorry for mistakes, if any, I am not from english speaking country.

I am not from an english speaking country as well (Brazil)... ;)

Hi! I am Lukas and I have a problem, I am writing my own OS using NASM and my emulator in QEMU. I have my bootloader and i want to use that bootloader only to call function from other file to start all my OS because bootloader's width is only 512  bytes with 2 bytes for telling BIOS to boot from it. When I try %include "first.asm", compiler told me that he can't found first.asm which was in the same folder.

Did you try to declare the symbol as extern and link the object files? %include should work, but you can say to NASM where to find the include files with -I option...

Second is that I want to read a mouse position or mouse move ( how much it does move from previous position), I know that in application ( for example on MS-DOS ) it is do by using INT 33h, but I think that without another OS it won't work , so my question is how to do it ( I have USB mouse ).

INT 0x33 only works with there is a mouse driver installed (old MS-DOS), this is not part of ROM-BIOS. You have to deal with the keyboard controller (yep... both are serial devices) or directly with USB via the Platform Controller Hub memory mapped address space for this device (not easy)...

if you are confortable reading portuguese, I have an article showing how to do it...
92
Programming with NASM / combining multiple asm files, mouse position
« Last post by lukassevc on March 28, 2019, 10:02:08 PM »
Hi! I am Lukas and I have a problem, I am writing my own OS using NASM and my emulator in QEMU. I have my bootloader and i want to use that bootloader only to call function from other file to start all my OS because bootloader's width is only 512  bytes with 2 bytes for telling BIOS to boot from it. When I try %include "first.asm", compiler told me that he can't found first.asm which was in the same folder. Second is that I want to read a mouse position or mouse move ( how much it does move from previous position), I know that in application ( for example on MS-DOS ) it is do by using INT 33h, but I think that without another OS it won't work , so my question is how to do it ( I have USB mouse ).

PS: Sorry for mistakes, if any, I am not from english speaking country.
93
Other Discussion / Happy Wheels Demo
« Last post by zindara on March 19, 2019, 03:49:44 AM »
Happy Wheels is a ragdoll physics-based platform browser game developed and published by American studio Fancy Force. Created by video game designer Jim Bonacci in 2010, the game features several player characters, who use different, sometimes atypical, vehicles to traverse the game's many levels.

* Characters in happy wheels game:
- Segway Guy
- Betty
- Wheelchair Guy
- Billy and Bobby
- Lawnmower Larry
- Pogo Pete
- Santa Claus
- Helicopter Harry
- Motorcycle Mike and Motorcycle Mary
- Irresponsible Mom
- Indy
94
Other Discussion / Re: Hi all
« Last post by William Fisher on March 18, 2019, 07:43:13 AM »
Yeah, that's a really decent tutorial! I learned a lot from it.
95
Programming with NASM / Re: debug nasm os
« Last post by debs3759 on March 13, 2019, 11:00:05 PM »
If you want to see a fully documented FAT12 bootloader in nasm, check my thread at https://forum.nasm.us/index.php?topic=2265.0

It reads a text file from the floppy (it can be very fragmented) and displays it. It is easy to change it to load and execute a second stage loader, and converting it for FAT16 or FAT32 would be trivial. I need to get back into coding and update it, my OS died when I got too ill to code.
96
Programming with NASM / Re: debug nasm os
« Last post by Frank Kotler on March 13, 2019, 01:32:48 AM »
Dunno. Consult the Bochs documentation?

Best,
Frank

97
Programming with NASM / Re: debug nasm os
« Last post by serrrgggeee on March 12, 2019, 06:44:53 AM »
seems to suggest Bochs for debugging. Good luck!
can you give some example how to use Bochs to debug. I want debuging not only mike os, it`s fit any bootloader writed on nasm.
98
Programming with NASM / Re: debug nasm os
« Last post by Frank Kotler on March 10, 2019, 11:12:31 PM »
Hi serrrgggeee.

Welcome to the forum.

Why are you looking at code you don't understand? An OS is an advanced project. Not suitable for a beginner. You'll only frustrate yourself! I strongly suggest starting with something simpler and working your way up.

Having said that, the MikeOS page:
http://mikeos.sourceforge.net/handbook-user.html
seems to suggest Bochs for debugging. Good luck!

Best,
Frank

99
Programming with NASM / debug nasm os
« Last post by serrrgggeee on March 10, 2019, 04:29:02 PM »
Hi. I learn mike os and not understand any part of code, how can i debug code. I mean that i want see a streeng`s number where code has executed.
100
Example Code / Re: Anyone have a copy of the source for Paul Carter's asm_io.o?
« Last post by Clay on March 10, 2019, 09:06:46 AM »
I would highly recommend the NASM Tutorial at:

http://cs.lmu.edu/~ray/notes/nasmtutorial/
Pages: 1 ... 8 9 [10]