/**
 * One memory bank with data.
 */ export class MemBank16k { public static MAX_NUMBER_OF_BANKS = 112 ; public static BANK16K_SIZE = 0x4000 ; public bank : number ; public data : Uint8Array = new Uint8Array ( MemBank16k . BANK16K_SIZE ) ; returns public static getMemBankPermutation ( i ) { if ( i >= 6 ) return i ; return [ 5 , 2 , 0 , 1 , 3 , 4 ] [ i ] ; } }