Class: Fixnum
- Inherits:
-
Object
- Object
- Fixnum
- Defined in:
- lib/c64asm/asm.rb
Overview
Fixnum monkey-patches
Instance Method Summary collapse
-
#ls_byte ⇒ Object
Return the least significant byte.
-
#ms_byte ⇒ Object
Return the most significant byte.
Instance Method Details
#ls_byte ⇒ Object
Return the least significant byte
11 |
# File 'lib/c64asm/asm.rb', line 11 def ls_byte; self & 255; end |
#ms_byte ⇒ Object
Return the most significant byte
14 |
# File 'lib/c64asm/asm.rb', line 14 def ms_byte; self >> 8; end |