Loading/Running Binary Programs

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
PearOs
Member
Member
Posts: 194
Joined: Mon Apr 08, 2013 3:03 pm
Location: Usually at my keyboard!

Loading/Running Binary Programs

Post by PearOs »

Hey guys, I am at the point in my 64bit Assembly Operating System, where I would like to write programs in Assembly and load and run them. So my question is how do I go about this for kernel calls and calls to other parts of code? For example, I have an Asm class called "Console" and a call would be "Console_Print", in lets say "hello.asm" which is compiled down to "hello.app" and is a binary file using Nasm, how do I call "Console_Print"? I don't know the address to it, so that's where things get tricky. Anyways thanks for the help! - Matt
Mikemk
Member
Member
Posts: 409
Joined: Sat Oct 22, 2011 12:27 pm

Re: Loading/Running Binary Programs

Post by Mikemk »

Try "call Console_Print"
Programming is 80% Math, 20% Grammar, and 10% Creativity <--- Do not make fun of my joke!
If you're new, check this out.
User avatar
Kazinsal
Member
Member
Posts: 559
Joined: Wed Jul 13, 2011 7:38 pm
Libera.chat IRC: Kazinsal
Location: Vancouver
Contact:

Re: Loading/Running Binary Programs

Post by Kazinsal »

PearOs
Member
Member
Posts: 194
Joined: Mon Apr 08, 2013 3:03 pm
Location: Usually at my keyboard!

Re: Loading/Running Binary Programs

Post by PearOs »

Blacklight wrote:System Calls
Thanks, I got it all figured out now. - Matt :)
freecrac
Member
Member
Posts: 69
Joined: Thu Sep 20, 2012 5:11 am
Location: germany hamburg

Re: Loading/Running Binary Programs

Post by freecrac »

Maybe some online-help is also usefull?

Compile and Execute Assembly Online (NASM version 2.10.07)
http://www.compileonline.com/compile_as ... online.php

Online x86 / x64 Assembler:
https://defuse.ca/online-x86-assembler.htm#disassembly

Dirk
Post Reply