Search Results

Showing results 1 to 22 of 22
Search took 0.01 seconds.
Search: Posts Made By: NotNull ; Forum: Assembly and child forums
Forum: Assembly 3 Days Ago
Replies: 4
Views: 213
Posted By NotNull
Whether the operands are 8-bit or 16-bit is specified in the
opcode of the instruction by the word bit (bit 0), also
whether REG field in the modR/M specifies the destination
operand is determined...
Forum: Assembly 5 Days Ago
Replies: 4
Views: 213
Posted By NotNull
Here's what some of the values mean in the modR/M byte:
Operands Mod Reg R/M Displacement
Reg,Reg 11 XXX XXX Here R/M is treated as Reg ...
Forum: Assembly Oct 30th, 2009
Replies: 2
Views: 409
Posted By NotNull
On the MS-DOS system functions for input I usually
use, atimes a Carriage-Return character is at the
end of the buffer lest the maximum count of
characters is met. 21/3F
0xd ends the input, that...
Forum: Assembly Oct 30th, 2009
Replies: 4
Views: 434
Posted By NotNull
[[[AxxAxLLlaLLLaXBxG]]]]

mov cx, 0x10
mov ax, 0x123
db 0x66
shl ax, cl ; shift 0x123 into high-word of EAX
db 0x66
shr ax, cl ; shift back into low-word of EAX, that is, AX

You would need...
Forum: Assembly Oct 22nd, 2009
Replies: 1
Views: 335
Posted By NotNull
mov ds, seg buff ; works in MASM
mov si, offset buff

All you need is the segment address on which the buff string
lies, this is because your generating an .EXE.

Here's one way to wait for a...
Forum: Assembly Oct 15th, 2009
Replies: 19
Views: 791
Posted By NotNull
To print out your commandline arguments with
function 9, simply add a '$' to the end of the actual command tail.
example:

xor bx, bx
mov bl, [0x80]
mov byte [bx+0x81],'$'
mov bx, 0x81

But...
Forum: Assembly Oct 14th, 2009
Replies: 19
Views: 791
Posted By NotNull
16-bit OS dos I need help vortex reign....
Hello, to answer your question NASM16 is a 16-bit (80x86) assembler
for MS-DOS.
To access commandline parameters, they are passed by the
loader (your...
Forum: Assembly Oct 13th, 2009
Replies: 1
Views: 454
Posted By NotNull
Color text-mode memory lies at segment 0xb800 and is 4000 bytes
in length 80*25*2 cuz each visible character on the screen
is accompanied by a text attribute byte.
00000000 Text Attribute Byte...
Forum: Assembly Sep 26th, 2009
Replies: 2
Views: 379
Posted By NotNull
Access violation is caused when a program attempts to
access memory reserved for the operating system.
I thought this could only happen in a windows program?

I assume your using MASM:

mov ax,...
Forum: Assembly Sep 25th, 2009
Replies: 2
Views: 716
Posted By NotNull
Why do you open the file with 3Dh when you already
have the file handle returned by 3Ch?
This will create two file handles that refer to the same
file, so if you want to be a well-behaved...
Forum: Assembly Sep 25th, 2009
Replies: 2
Views: 716
Posted By NotNull
INT 21 - DOS 2+ - "LSEEK" - SET CURRENT FILE POSITION
AH=42h
AL=origin of move
00h - start of file
01h - current file position
02h - end of file
BX=file handle
CX : DX = (signed) offset from...
Forum: Assembly Sep 16th, 2009
Replies: 10
Views: 553
Posted By NotNull
I do not know if the above is right....
Forum: Assembly Sep 16th, 2009
Replies: 10
Views: 553
Posted By NotNull
I would assume the .386 directive means to generate
32-bit code. And your calling 16-bit Dos interrupts???
I don't know what else is wrong, I do not use MASM.
Forum: Assembly Sep 14th, 2009
Replies: 22
Views: 935
Posted By NotNull
It's been a while, but I think this is right.
Upon execution of the bootloader
CS,DS,ES will be zero,
And there is a 512-byte stack allocated by the BIOS.
SS (points where?) SP ?
I do not know...
Forum: Assembly Sep 13th, 2009
Replies: 22
Views: 935
Posted By NotNull
I added this to quickly boot your code with Bochs:

times 1474560 - ($ - $$) db 0

The code worked.
Your problem most likely is how you wrote it out to the disk.
The 512-byte image has to be...
Forum: Assembly Sep 12th, 2009
Replies: 2
Solved: help
Views: 264
Posted By NotNull
The high-byte and low-byte of AX,BX,CX,DX are also
referable by name.
AX-AH|AL
BX-BH|BL
CX-CH|CL
DX-DH|DL
So to refer to the lower eight bits of AX the name
AL is used.

For example:
Forum: Assembly Sep 12th, 2009
Replies: 2
Solved: help
Views: 264
Posted By NotNull
AX and BX are 16-bit registers.
Forum: Assembly Sep 6th, 2009
Replies: 22
Views: 935
Posted By NotNull
His origin is at 7C00h because the BIOS bootstrap
will load the first sector of a drive containing a valid boot sector
at physical address 07C00h and will jump to it
loading CS with 0 and IP with...
Forum: Assembly Aug 22nd, 2009
Replies: 4
Views: 505
Posted By NotNull
All values stored in memory are represented in binary,
so I would assume that if you had a decimal value
it would be the ASCII representation of a decimal value,
as if it were entered in by the...
Forum: Assembly Jul 20th, 2009
Replies: 5
Views: 973
Posted By NotNull
I assume you would like to turn the value in memory
into the asci representation of the decimal value.
For example, the value 20h (32d) in a byte
into the asci characters 33h '3' and 32h '2',...
Forum: Assembly Jul 19th, 2009
Replies: 3
Views: 423
Posted By NotNull
And also do not forget that the quotient cannot be larger
than the destination register.
So when using a 16-bit divisor make sure the quotient
will not be larger than 16-bits, the size of AX.
And...
Forum: Assembly Jul 19th, 2009
Replies: 3
Views: 423
Posted By NotNull
With a 32-bit divisor it is divided against the quad-word
in EDX:EAX, quotient is returned in EAX, remainder in EDX.
You said you do not understand the hi and lo part,
they represent the high and...
Showing results 1 to 22 of 22

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC