Peña, Botp
9/1/2007 7:12:00 AM
From: darren kirby [mailto:bulliver@badcomputer.org]
# def load_byte(destination, base_address, offset)
# <snip 15 lines>
# @registers.gen[destination] = bitstring_to_int(byte)
# true
# end
#
# def load_byte_unsigned(destination, base_address, offset)
# <snip 15 lines>
# @registers.gen[destination] = bitstring_to_int(byte, signed=false)
# true
# end
def load_byte(destination, base_address, offset, signed=true)
<snip 15 lines>
@registers.gen[destination] = bitstring_to_int(byte,signed)
true
end
load_byte(destination, base_address, offset) #signed
load_byte(destination, base_address, offset, signed=false) #unsigned