This project is read-only.

Reading Registers In An IRQContext

Topics: Using Cosmos (Developing your own OS, projects, etc)
May 1, 2016 at 3:00 AM
OK, so iv'e written a simple program in asm which goes as follows

section .text
global _start
mov eax, 0x04 // the system call no
mov ebx, msg
int 0x47
section .data

msg db 'Hello World!^',0xa

so when i call this code the register ebx should have the value of 4 when int 47 is called. but when i print the value of the register to the console it prints 0.

// inside IRQ 47

So my question is where did my 4 go and why are the register values all 0

Many Thanks
Chris Sadler