flat assembler
Message board for the users of flat assembler.
Index
> OS Construction > Getting input from 16 bit mode |
Author |
|
smiddy 19 Jun 2005, 04:12
Look up Terminate and Stay Resident (TSR) programming for DOS. Most TSRs have hooks into the keyboard through I think INT 9h (I can't recall the specifics at the moment).
|
|||
19 Jun 2005, 04:12 |
|
bogdanontanu 19 Jun 2005, 14:24
TSR is a DOS thing
Just use BIOS INT 16h with ah=0 to read keyboard. Ckeckout BIOS INT functions for help. here is a small example from SolarOS 16 bit startup menu: Code: ... ;----------------------------- ; BIOS wait for a key ;----------------------------- mov ah,0 int 16h mov [user_key],ax ;--------------------------- ; check special keys ;--------------------------- .IF ah==48h ;------------------ ; up arrow ;------------------ dec [user_option] .IF SIGN? mov [user_option],0 .endif .ELSEIF ah==50h ;-------------- ;down arror ;-------------- inc [user_option] .IF [user_option]>11 mov [user_option],11 .endif .endif ... _________________ "Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction." |
|||
19 Jun 2005, 14:24 |
|
smiddy 19 Jun 2005, 17:21
bogdanontanu wrote: TSR is a DOS thing Hey Bogdan, Long time... Yeah I know this is a DOS thing, but I thought since he was looking for specific scan codes he may be interested in a deeper look. From what I recall the TSRs latch into the interrupt vector and scan for left-shift-A or right-ctrl-]. These are generally linked into a software interrupt for at a moments-notice useage. But perhaps I misunderstood Red's needs. There is always more than one way to skin a cat...some people like turpentine, others use a bazooka. And others too like to make a game out of it; here kitty-kitty! |
|||
19 Jun 2005, 17:21 |
|
Dex4u 19 Jun 2005, 17:35
It seems he is looking to make a bootable game like "CdPod" but for game, thats why he need to do keypressed.
@Redragon, Have you seen "Privalov" tetris game, from the 512b compo ?, that may help, as thats bootable,and enjoyable . |
|||
19 Jun 2005, 17:35 |
|
Redragon 19 Jun 2005, 18:03
I just got it to work, i finally figured out what i was doing wrong..lol
|
|||
19 Jun 2005, 18:03 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.