Jump to content

Question about interrupts

- - - - -

  • Please log in to reply
4 replies to this topic

#1
JewFro297

JewFro297

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 224 posts
In this specific hello world program

org 100h

    mov dx,msg

    mov ah,9

    int 21h

    mov ah,4Ch

    int 21h

    msg db 'Hello, World!',0Dh,0Ah,'$'


how would you do that without the interrupt instruction?

if the operating system is what defines the interrupt code, then there has to be code that the interrupt itself is made up of right? sort of like headers?

so if I wanted to print Hello, World! from a boot floppy with absolutely no operating system and without using bios interrupt calls, how would I do it?

#2
innerLOL

innerLOL

    Newbie

  • Members
  • PipPip
  • 29 posts
yes you could use far call. but int also push EFLAGS

so pushfd and call far XXXX:YYYYYYYY

#3
JewFro297

JewFro297

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 224 posts

innerLOL said:

yes you could use far call. but int also push EFLAGS

so pushfd and call far XXXX:YYYYYYYY

I meant a way to do it without the routines, like write the program to stand on its own without an operating system or bios interrupt or call.

#4
innerLOL

innerLOL

    Newbie

  • Members
  • PipPip
  • 29 posts
ok you have to use io instructions then.
you need to know what to send to your monitor, using what bus to get pixels on screen.

exiting program would simply mean acquiring kernel locks for list_entry, and removing process object form memory.

#5
JewFro297

JewFro297

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 224 posts
ok thanks, i'll look into it




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users