flat assembler
Message board for the users of flat assembler.
Index
> DOS > How to turn num lock off in FASM? |
Author |
|
crc 11 Jul 2004, 19:25
Fasm doesn't need all of the red tape included in the code you provided. Here's the FASM version of your code:
Code: org 100h ; Start a DOS program MOV AX,40H ;set AX to 0040H MOV DS,AX ;load data segment with 0040H MOV SI,17H ;load SI with 0017H AND BYTE [SI],0DFH ;clear NUMLOCK bit int 20h ; exit |
|||
11 Jul 2004, 19:25 |
|
barneygumble742 11 Jul 2004, 19:48
wow. amazing. thanks. i'm on a xp machine now and it didn't work. so i got sceptical and booted up my win98se box. i compiled on there and it worked. is there a reason why that is?
|
|||
11 Jul 2004, 19:48 |
|
crc 11 Jul 2004, 19:58
NT/2000/XP lock various memory regions and I/O ports. It's for stability, but is a pain in the neck for those of us who know what we're doing
|
|||
11 Jul 2004, 19:58 |
|
barneygumble742 11 Jul 2004, 20:18
yeah that's what i figured. thank you very much.
barneygumble742 |
|||
11 Jul 2004, 20:18 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.