debug functions to assemble in MASM

Closed Posted May 13, 2008 Paid on delivery
Closed Paid on delivery

I'd like the following series of debug commands to be rewritten so that code/operation can be assembled in MASM without any errors (to create a .exe file)

The first set of commands is setting up a lookup table, where the hexadecimal value 01 is being stored at the address 1000, the value 4F is being stored at the address 1001, and so forth.

The second set of commands is taking in the binary value (example, 00001000) at the address 0379 and storing the first nibble (from example, 1000) in AL. The value is shifted left such that either a 1 or 0 will be stored in the carry flag (in the example, 1 would be stored in the carry flag). If the carry flag is high, then the operation will continue to the next set of commands. If the carry flag is zero, then the operation beginning with IN AL, [0379H] will repeatedly loop until the carry flag is high.

The rest of the code is pretty self-explanatory and straightforward. At the end of the operation (JMP AGAIN), it will repeat starting at the "AGAIN:" address.

-E 1000 01

-E 1001 4F

-E 1002 12

-E 1003 06

-E 1004 4C

-E 1005 24

-E 1006 20

-E 1007 0F

-E 1008 00

-E 1009 04

-E 100A 08

-E 100B 60

-E 100C 31

-E 100D 42

-E 100E 30

-E 100F 38

-IN AL, [0379H]

-SAL AL, 1

-JNC

AGAIN:

-MOV DX, 037AH

-MOV AL, 0H

-OUT DX, AL

-IN BX, [0379H]

-MOV CX, [1000H + BX]

-MOV DX, 037AH

-MOV AL, 2H

-OUT DX, AL

-MOV DX, 0378H

-OUT DX, CL

-MOV DX, 037AH

-MOV AL, 4H

-OUT DX, AL

-IN BX, [0379H]

-MOV CX, [1000H + BX]

-MOV DX, 037AH

-MOV AL, 6H

-OUT DX, AL

-MOV DX, 0378H

-OUT DX, CL

JMP AGAIN

## Deliverables

I'd like it completed by the night of 05/13/08 (tomorrow), California time.

Assembly Engineering MySQL PHP Project Management Software Architecture Software Testing

Project ID: #3926443

About the project

3 proposals Remote project Active May 22, 2008

3 freelancers are bidding on average $15 for this job

gobiogbi

See private message.

$17 USD in 1 day
(25 Reviews)
5.0
kcsoft

See private message.

$17 USD in 1 day
(16 Reviews)
4.2
electronicavw

See private message.

$10.2 USD in 1 day
(17 Reviews)
3.8