flat assembler
Message board for the users of flat assembler.
Index
> DOS > help me, is not loding error ,string loding |
Author |
|
revolution 07 Apr 2017, 09:16
al is an 8-bit register. You'll need at least a 16-bit register. Try using dx.
|
|||
07 Apr 2017, 09:16 |
|
kerr 07 Apr 2017, 09:45
revolution wrote: al is an 8-bit register. You'll need at least a 16-bit register. Try using dx. No this is error! mov dx,loding mov ah,0x0e int 0x10 display error. _________________ I hope we will be good friends. |
|||
07 Apr 2017, 09:45 |
|
revolution 07 Apr 2017, 09:52
You'll need to follow the int 0x10 register expectations. I showed dx as an example. But if int 0x10 uses another register then you'll have to use that.
But whatever you do you will need a 16-bit register, and also one of the segment registers to be set correctly. |
|||
07 Apr 2017, 09:52 |
|
kerr 07 Apr 2017, 09:54
revolution wrote: You'll need to follow the int 0x10 register expectations. I showed dx as an example. But if int 0x10 uses another register then you'll have to use that. can you run my code? You will find the problem. _________________ I hope we will be good friends. |
|||
07 Apr 2017, 09:54 |
|
Furs 07 Apr 2017, 11:19
https://en.wikipedia.org/wiki/INT_10H
On AH=0Eh it says AL is a character, and you instead pass it the address of your string. You'll probably need a loop and use instead: Code: mov al, [loding] Or use AH=13H it seems it's made for writing strings? |
|||
07 Apr 2017, 11:19 |
|
kerr 08 Apr 2017, 02:24
Furs wrote: https://en.wikipedia.org/wiki/INT_10H Oh frend... this al,[loding] is error . I tried . this is my code. Code: mov si,loding lodsb or al,al jz end_s mov ah,0x0e mov bx,02 int 0x10 mov al,loding is error ,It is because there is no pointer _________________ I hope we will be good friends. |
|||
08 Apr 2017, 02:24 |
|
Furs 08 Apr 2017, 15:45
What is your code supposed to be doing? You need to put the entire int 0x10 in a loop, together with lodsb.
Code: mov si, loding mov cx, 20 mov bx, 2 mov ah, 0x0e @@: lodsb int 0x10 cmp al, 10 ; check for newline (your string does NOT have null terminator) jnz @b BTW it's spelled loading. |
|||
08 Apr 2017, 15:45 |
|
kerr 13 Apr 2017, 06:36
Furs wrote: What is your code supposed to be doing? You need to put the entire int 0x10 in a loop, together with lodsb. thank you frends . this is a good ideas. _________________ I hope we will be good friends. |
|||
13 Apr 2017, 06:36 |
|
system error 10 May 2017, 06:24
oh keeeeerrrrrrr friend
i hope u die somewherre in your boot program before it gets to the signature. C'mon, your english is getting worse for every posts right from last year! I've improved my english so much since then. You?? kerrrr... please die! |
|||
10 May 2017, 06:24 |
|
kerr 10 May 2017, 07:37
system error wrote: oh keeeeerrrrrrr friend NO I don't think so system error friend. Your speak english is vary good. but i don't think so my english is worse. i just don't want typing. _________________ I hope we will be good friends. |
|||
10 May 2017, 07:37 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.