flat assembler
Message board for the users of flat assembler.
Index
> DOS > Help making first DOS app |
Author |
|
DOS386 24 Feb 2009, 23:56
Coddy41 wrote: trouble making my first DOS app can anyone help? Maybe. > call Cls What is it supposed to do ??? > jmp start Dead loop. > mov ax,0x0600 Clear screen ? wow What about DI ??? > I am used to OS coding so that might explain why I suck at DOS Programing Your code doesn't use DOS at all. > so any way I am compiling it to a .com file. format binary as "COM" > inside the place that rains electrisity Your primary BUG, should be electricity > Stop 0x0000000A or IRQL_NOT_LESS_OR_EQUAL Then it must be bigger ... or did I miss something ? Last edited by DOS386 on 25 Feb 2009, 00:02; edited 1 time in total |
|||
24 Feb 2009, 23:56 |
|
Coddy41 25 Feb 2009, 00:01
I have no Idea, It looks really bugged up now. I think I will stick to OSes.
|
|||
25 Feb 2009, 00:01 |
|
LocoDelAssembly 25 Feb 2009, 00:16
What do you mean by OS coding?
Not very well done but this one will print the spinning thing indefinitely: Code: use16 org 0x100 call Cls start: mov bp,one call print mov bp,two call print mov bp,three call print mov bp,four call print jmp start one db ' / ',0 two db ' | ',0 three db '---',0 four db ' \ ',0 Cls: mov ax,0x0600 mov bh,0x07 mov cx,0x0000 mov dx,0x184f int 10h ret print: mov ax, $1300 mov bx, 7 ; [7:7] = blink bit; [6:4] = background color; [3:0] = font color mov cx, 3 ; string size xor dx, dx ; col and row position int $10 ret |
|||
25 Feb 2009, 00:16 |
|
Coddy41 25 Feb 2009, 01:42
It works alot better now, thank you LocoDelAssembly I forgot all about the print function, witch is the most important function in it, or close to
|
|||
25 Feb 2009, 01:42 |
|
revolution 25 Feb 2009, 03:09
Indeed, print is the heart of debugging, without print you are lost.
|
|||
25 Feb 2009, 03:09 |
|
Coddy41 25 Feb 2009, 16:47
OK, um I re-edited it, It runs much smoother now.
Code: use16 org 0x100 call Cls start: mov bp,one call print mov bp,two call print mov bp,three call print mov bp,four call print mov bp,five call print mov bp,six call print mov bp,seven call print mov bp,eight call print jmp start one db ' | ',0 two db ' / ',0 three db '---',0 four db ' \ ',0 five db ' | ',0 six db ' / ',0 seven db '---',0 eight db ' \ ',0 Cls: mov ax,0x0600 mov bh,0x07 mov cx,0x0000 mov dx,0x184f int 10h ret print: mov ax, $1300 mov bx, 7 ; [7:7] = blink bit; [6:4] = background color; [3:0] = font color mov cx, 3 ; string size xor dx, dx ; col and row position int $10 ret It still has a pause before starting the loop over. But I will fix it sometime Thaks LocoDelAssembly. And thanks for the reminder revolution. _________________ Want hosting for free for your asm project? You can PM me. (*.fasm4u.net) |
|||
25 Feb 2009, 16:47 |
|
Coddy41 20 Apr 2009, 17:52
DOS386 wrote: > inside the place that rains electrisity Oh, I get that part now, my sig _________________ Want hosting for free for your asm project? You can PM me. (*.fasm4u.net) |
|||
20 Apr 2009, 17:52 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.