flat assembler
Message board for the users of flat assembler.
Index
> High Level Languages > Calling interrupts in VC++ |
Author |
|
DOS386 30 Mar 2007, 23:53
Quote: Will a miracle save me from learning Windows API? Use DOS Code: __asm { mov ah, 08h ; request get current attribute int 10h ; and mov bh, ah ; move it to bh mov ax, 0600h ; scroll screen with attribute, ; al = numbers of row; 00 is fullscreen mov cx, upper_left ; upper left location mov dx, lower_right ; lower right location int 10h } BIOS INT's do work in 16-bit RM DOS code, with some care also in DPMI code, but NEVER in Windaube code http://board.flatassembler.net/topic.php?t=6633 What compiler do you use ? Some >10 years old versions (having DOS target) might help _________________ Bug Nr.: 12345 Title: Hello World program compiles to 100 KB !!! Status: Closed: NOT a Bug |
|||
30 Mar 2007, 23:53 |
|
nvictor 30 Mar 2007, 23:59
My program should work under windows. Does that mean that the only way is to learn the WIn32 API ??
|
|||
30 Mar 2007, 23:59 |
|
DOS386 31 Mar 2007, 00:05
YES.
_________________ Bug Nr.: 12345 Title: Hello World program compiles to 100 KB !!! Status: Closed: NOT a Bug |
|||
31 Mar 2007, 00:05 |
|
nvictor 31 Mar 2007, 14:15
No pain. No gain.
|
|||
31 Mar 2007, 14:15 |
|
Filter 17 Apr 2007, 12:16
http://msdn2.microsoft.com/en-us/library/ms682073.aspx
You don't have to learn the whole windows api to control the console window just these functions should get you where you are going. SetConsoleCursorPosition and SetConsoleCursorInfo should get you what you need. |
|||
17 Apr 2007, 12:16 |
|
vid 17 Apr 2007, 12:30
if you don't want to learn API, you can use some library which uses API and provides different interface
|
|||
17 Apr 2007, 12:30 |
|
cod3b453 01 May 2007, 19:31
There's a cheat using system("cls"), but i've never used it...
|
|||
01 May 2007, 19:31 |
|
f0dder 02 May 2007, 22:55
If you don't want to learn anything new, quit programming.
No, you can't call the 16bit DOS/BIOS interrupts from 32bit mode, thanks whatever_deity MS for not following the typical DPMI-extended-dos-interrupts style. APIs are easier to lookup, and with PlatformSDK everything becomes easy when you learn how to find a suitable "entrypoint" for researching. system("cls") is an ugly hack. filter has already given you two entrypoints to MSDN/PlatformSDK, from where it should be really easy to dig up the rest of the info you need. I'll give you another hint: WriteConsoleOutput. |
|||
02 May 2007, 22:55 |
|
Goplat 02 May 2007, 23:15
WriteConsoleOutput could clear the screen but you'd have to first allocate a buffer depending on how big the screen is, fill it up with the character/attribute you want, call the function, then free it. It's easier to use FillConsoleOutputAttribute and FillConsoleOutputCharacter.
|
|||
02 May 2007, 23:15 |
|
penguinglx 23 Aug 2007, 06:41
U should take a look at IA32 System Programming Paper released by intel + DPMI
then maybe u want to read WIn95 Programming Secrets book that way might help u some |
|||
23 Aug 2007, 06:41 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.