Page 1 of 1
Loading/Running Binary Programs
Posted: Mon May 06, 2013 12:33 pm
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
Re: Loading/Running Binary Programs
Posted: Mon May 06, 2013 1:02 pm
by Mikemk
Try "call Console_Print"
Re: Loading/Running Binary Programs
Posted: Mon May 06, 2013 6:45 pm
by Kazinsal
Re: Loading/Running Binary Programs
Posted: Mon May 06, 2013 11:13 pm
by PearOs
Thanks, I got it all figured out now. - Matt
Re: Loading/Running Binary Programs
Posted: Tue May 07, 2013 2:05 am
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