Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 10 Aug 2007
Offline Last Active Aug 14 2012 06:14 PM

Posts I've Made

In Topic: LC-3 Assembly problem

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

In Topic: Array Find Largest Recursively

18 April 2012 - 04:54 PM

I believe I need to check the values at a different position. Then return the larger of the two but as a position instead of a number. I am confused though.

In Topic: Exchange the position of two Nodes [Java]

06 April 2012 - 04:32 PM

I don't plan to use the exchangeNodes as much. I was originally thinking ArrayList but it was too slow for the other operations.

I could swap the info parts, but I actually need to swap the nodes (might also be good to learn to actually swap the nodes because I need a similar thing for another project, a game involving maple trees).

I am trying the trailer / leader approach to swap the nodes but I just ended up creating a queue during execution which is definitely bad since all I wanted was to swap nodes.

In Topic: Reading from a File [Java]

06 April 2012 - 01:33 PM

Thanks guys! Very insightful. Learned a lot.

In Topic: [Java] Abstract class problem

27 March 2012 - 08:51 PM

Thank you very much.