scripts/update/hook_durian_update_locationd.js
/*
    Prints a list of opcodes.
    */
Prints a list of opcodes.
Prints a list of opcodes .
printOpcodes() {
        var self = this;
        console.log("Durian opcode list: ")
        for (let op = 0; op <= 255; op++) {
            var desc = self.getDurianOpcodeDescription(op);
            if ("Unknown".localeCompare(desc) != 0) {
                console.log("[d] " + op + ": " + desc);
            }
        }
        console.log("Hawkeye opcode list: ")
        for (let op = 512; op <= 1300; op++) { 
            var desc = self.getHawkeyeOpcodeDescription(op);
            if ("Unknown".localeCompare(desc) != 0) {
                console.log("[h] " + op + ": " + desc);
            }
        }
    }
printOpcodes ( ) { var self = this ; console . log ( "Durian opcode list: " ) for ( let op = 0 ; op <= 255 ; op ++ ) { var desc = self . getDurianOpcodeDescription ( op ) ; if ( "Unknown" . localeCompare ( desc ) != 0 ) { console . log ( "[d] " + op + ": " + desc ) ; } } console . log ( "Hawkeye opcode list: " ) for ( let op = 512 ; op <= 1300 ; op ++ ) { var desc = self . getHawkeyeOpcodeDescription ( op ) ; if ( "Unknown" . localeCompare ( desc ) != 0 ) { console . log ( "[h] " + op + ": " + desc ) ; } } }
Prints a list of opcodes.
Prints a list of opcodes .
//not iterating the full 2 bytes here