flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
Dex4u 09 Apr 2006, 23:53
So near, but so far
![]() Code: org 100huse16Main:mov ah,09hmov dx,textOneint 21hmov bx,0x0B800mov es,bxxor di,dimov al,BYTE[es:di]mov BYTE[textTwo+9],al;cmp al, 'l';je PrintSuccess;int 20h;PrintSuccess:xor dx,dxxor ax,axmov ah,09hmov dx,textTwoint 21hxor ax,axint 16hint 20h Var: textOne db 'Hello',13,10,'$'textTwo db 'Returns: ', '$' |
|||
![]() |
|
Steve 10 Apr 2006, 03:16
Hi, Dex. Wow, such bad luck!
![]() ![]() - Steve |
|||
![]() |
|
TDCNL 10 Apr 2006, 07:00
I've tested this piece of code too, (from you both) and it doesn't work on my PC either (WinXP SP2 Pro).
_________________ :: The Dutch Cracker :: |
|||
![]() |
|
Dex4u 10 Apr 2006, 11:23
Works on 5 win98, but not on xp, if yours is xp PC, then it does not seem to work on XP.
EDIT: I do not program on XP at all, but on some test i have just Carried out, it seems you can not directly access screen in XP. Eg: this works fine in win98 Code: org 100huse16Main:mov ax,0xB800mov es,axlea si,[textOne]mov di,2mov cx,10cldrep movsbxor ax,axint 16hint 20htextOne db 'H e l l o ' ![]() screenshot:
|
||||||||||
![]() |
|
Steve 10 Apr 2006, 16:02
What a shame..
![]() ![]() |
|||
![]() |
|
Dex4u 10 Apr 2006, 19:01
|
|||
![]() |
|
Matrix 10 Apr 2006, 21:08
Code: mov ax,$0003 int 10h put this at the beginning, and try on XP ![]() ![]() |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.