Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualCuajin

Posted 11 July 2012 - 11:50 PM

Posted Image
I think I found a big problem. I can print now, but not 0s.

.ORIG   x3000

	LD  R2, data5   ; Load the ASCII code
	AND	 R0, R2, #0
	TRAP	x21

data5   .FILL   x0030	; ASCII code x30


I can use the same code and print a 1, or any number, but 0 (zero) just does not print.

For sure R0 = 0

R2 = ASCII code x0030

My output looks like this: 111111

It should look like: 1011011

It is actually 2 bits shorter which means that the 0s are being ignored.

Please help

#2Cuajin

Posted 11 July 2012 - 11:48 PM

Posted Image
I think I found a big problem. I can print now but, not 0s.

.ORIG   x3000

	LD  R2, data5   ; Load the ASCII code
	AND	 R0, R2, #0
	TRAP	x21

data5   .FILL   x0030	; ASCII code x30


I can use the same code and print a 1, or any number, but 0 (zero) just does not print.

For sure R0 = 0

R2 = ASCII code x0030

My output looks like this: 111111

It should look like: 1011011

It is actually 2 bits shorter which means that the 0s are being ignored.

Please help

#1Cuajin

Posted 11 July 2012 - 11:48 PM

Posted Image
I think I found a big problem. I can print now but, not 0s.

.ORIG   x3000

    LD  R2, data5   ; Load the ASCII code
    AND	 R0, R2, #0 
    TRAP    x21

data5   .FILL   x0030    ; ASCII code x30

PARTNERS