Class: BigEndianAccess

BigEndianAccess(delegate)

BigEndianAccess Provides word and half-word access in big-endian-order to a byte-based memory delegate

Constructor

new BigEndianAccess(delegate)

Parameters:
Name Type Description
delegate Object The delegate to access
Source:

Methods

getByte(pointer) → {Number}

Get a byte at a specified address
Parameters:
Name Type Description
pointer Number The address the wanted data lives
Source:
Returns:
Requested data
Type
Number

getDataAtAddress(address, byteCount, asUnsigned) → {Number}

Get a given number of bytes at an address
Parameters:
Name Type Description
address Number The starting address for your data
byteCount Number How many bytes of data you want returned
asUnsigned Boolean True if you want the number returned without a sign extension.
Source:
Returns:
Type
Number

getHalfword(pointer) → {Number}

Get one half word (16 bits if word is 32) at a given address
Parameters:
Name Type Description
pointer Number Address where data lives
Source:
Returns:
Retrieved data
Type
Number

getUnsignedByte(pointer) → {Number}

Get an unsigned byte at the specified address
Parameters:
Name Type Description
pointer Number Address where you want data from.
Source:
Returns:
Data at address.
Type
Number

getUnsignedHalfword(pointer) → {Number}

Get unsigned half word (16 bits if word is 32) at a given address
Parameters:
Name Type Description
pointer Number Address where data lives
Source:
Returns:
Retrieved data
Type
Number

getUnsignedWord(pointer) → {Number}

Get unsigned word at a given address
Parameters:
Name Type Description
pointer Number Address where data lives
Source:
Returns:
Retrieved data
Type
Number

getWord(pointer) → {Number}

Get word at a given address
Parameters:
Name Type Description
pointer Number Address where data lives
Source:
Returns:
Retrieved data
Type
Number

setByte(pointer, data)

Set a byte at given address
Parameters:
Name Type Description
pointer Number The address with data you want to set
data Number The data you want to write to the address
Source:

setDataAtAddress(address, byteCount, data)

Set data at an address
Parameters:
Name Type Description
address Number The address you want to write
byteCount Number How many bytes you want to overwrite
data Number Number you want to set there.
Source:

setHalfword(pointer, data)

Set half word at given address
Parameters:
Name Type Description
pointer Number Address to overwrite with half word of data
data Number Data to write to address
Source:

setWord(pointer, data)

Set word at given address
Parameters:
Name Type Description
pointer Number where data will be written
data Number Data to be written to the address
Source: