Class: Fixnum

Inherits:
Object
  • Object
show all
Defined in:
lib/c64asm/asm.rb

Overview

Fixnum monkey-patches

Instance Method Summary collapse

Instance Method Details

#ls_byteObject

Return the least significant byte



11
# File 'lib/c64asm/asm.rb', line 11

def ls_byte; self & 255; end

#ms_byteObject

Return the most significant byte



14
# File 'lib/c64asm/asm.rb', line 14

def ms_byte; self >> 8; end