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.
This is another reason to use an ELF Cross Compiler. With Windows object files, the convention for 32-bit COFF files (Windows Object files) is that any function you want to make global must have an underscore prefixed to the name. If you write C code, a Windows C compiler will automatically add the extra underscore under the hood. However, in assembly code you must do this yourself! So you will need to add an `_` (underscore) to the beginning of each of the functions you wish to made available to the C code. So function `isr1` would be `_isr1` and you would also have to make it globally visible by using `global _isr1` as well. Do not add the underscores inside the C code that is handled automatically by the compiler.
Note: You seem to be using prnt.sc to publish your images. That service doesn't seem to play well with OSDev forum and the images don't actually show up. I have to go out of my way to find the link and then go to your images directly.
MichaelPetch wrote:This is another reason to use an ELF Cross Compiler. With Windows object files, the convention for 32-bit COFF files (Windows Object files) is that any function you want to make global must have an underscore prefixed to the name. If you write C code, a Windows C compiler will automatically add the extra underscore under the hood. However, in assembly code you must do this yourself! So you will need to add an `_` (underscore) to the beginning of each of the functions you wish to made available to the C code. So function `isr1` would be `_isr1` and you would also have to make it globally visible by using `global _isr1` as well. Do not add the underscores inside the C code that is handled automatically by the compiler.
Note: You seem to be using prnt.sc to publish your images. That service doesn't seem to play well with OSDev forum and the images don't actually show up. I have to go out of my way to find the link and then go to your images directly.
Sorry for the lightshot link, and thanks for the help!