=========================================================== .___ __ __ _________________ __ __ __| _/|__|/ |_ / ___\_` __ \__ \ | | \/ __ | | \\_ __\ / /_/ > | \// __ \| | / /_/ | | || | \___ /|__| (____ /____/\____ | |__||__| /_____/ \/ \/ grep rough audit - static analysis tool v2.8 written by @Wireghoul =================================[justanotherhacker.com]=== nqc-3.1.r6/compiler/parse.cpp-62-#define GOTO 312 nqc-3.1.r6/compiler/parse.cpp:63:#define ASM 313 nqc-3.1.r6/compiler/parse.cpp-64-#define INT 314 ############################################## nqc-3.1.r6/compiler/parse.tab.h-74-#define GOTO 312 nqc-3.1.r6/compiler/parse.tab.h:75:#define ASM 313 nqc-3.1.r6/compiler/parse.tab.h-76-#define INT 314 ############################################## nqc-3.1.r6/compiler/parse.y-139-%token IF WHILE DO FOR REPEAT SWITCH CASE DEFAULT MONITOR CATCH ACQUIRE GOTO nqc-3.1.r6/compiler/parse.y:140:%token ASM nqc-3.1.r6/compiler/parse.y-141-%token INT T_VOID T_CONST SENSOR TASKID NOLIST RES ############################################## nqc-3.1.r6/compiler/parse.y-271-misc_stmt nqc-3.1.r6/compiler/parse.y:272: : ASM '{' asm_list '}' ';' { $$ = $3; } nqc-3.1.r6/compiler/parse.y-273- | saveloc JUMP ';' { $$ = new JumpStmt($2, sSavedLoc); } ############################################## nqc-3.1.r6/compiler/rcx1.nqh-65- nqc-3.1.r6/compiler/rcx1.nqh:66:#define SensorMode(sensor, mode) asm { 0x42, $sensor : 0x03000200, (mode) } nqc-3.1.r6/compiler/rcx1.nqh-67- ############################################## nqc-3.1.r6/compiler/rcx1.nqh-83-// set a sensor's type nqc-3.1.r6/compiler/rcx1.nqh:84:#define SensorType(sensor, type) asm { 0x32, $sensor : 0x03000200, (type) } nqc-3.1.r6/compiler/rcx1.nqh-85- ############################################## nqc-3.1.r6/compiler/rcx1.nqh-118-// output functions nqc-3.1.r6/compiler/rcx1.nqh:119:#define OutputMode(o, m) asm { 0x21, (o) + (m) } nqc-3.1.r6/compiler/rcx1.nqh:120:#define OutputDir(o, d) asm { 0xe1, (o) + (d) } nqc-3.1.r6/compiler/rcx1.nqh:121:#define OutputPower(o, p) asm { 0x13, (o), $p : 0x1000015} nqc-3.1.r6/compiler/rcx1.nqh-122- ############################################## nqc-3.1.r6/compiler/rcx1.nqh-142- nqc-3.1.r6/compiler/rcx1.nqh:143:#define Drive(m0, m1) asm { 0x41, DIRSPEED(m0) | DIRSPEED(m1)<<4 } nqc-3.1.r6/compiler/rcx1.nqh:144:#define OnWait(m, n, t) asm { 0xc2, (m)<<4 | DIRSPEED(n), t } nqc-3.1.r6/compiler/rcx1.nqh:145:#define OnWaitDifferent(m, n0, n1, n2, t) asm { 0x53, (m)<<4 | DIRSPEED(n0), DIRSPEED(n1)<<4 | DIRSPEED(n2), t } nqc-3.1.r6/compiler/rcx1.nqh-146- ############################################## nqc-3.1.r6/compiler/rcx1.nqh-192-// playing sounds and notes nqc-3.1.r6/compiler/rcx1.nqh:193:#define PlaySound(x) asm { 0x51, x } nqc-3.1.r6/compiler/rcx1.nqh:194:#define PlayNote(f, d) asm { 0x23, (f), (f)>>8, (d) } nqc-3.1.r6/compiler/rcx1.nqh-195- nqc-3.1.r6/compiler/rcx1.nqh-196-// sleep for v ticks (10ms per tick) nqc-3.1.r6/compiler/rcx1.nqh:197:#define Sleep(v) asm { 0x43, $v : 0x0015} nqc-3.1.r6/compiler/rcx1.nqh-198- nqc-3.1.r6/compiler/rcx1.nqh-199- nqc-3.1.r6/compiler/rcx1.nqh:200:#define ClearTimer(n) asm { 0xa1, n } nqc-3.1.r6/compiler/rcx1.nqh:201:#define ClearSensor(sensor) asm { 0xd1, $sensor : 0x03000200 } nqc-3.1.r6/compiler/rcx1.nqh-202- nqc-3.1.r6/compiler/rcx1.nqh:203:#define StopAllTasks() asm { 0x50 } nqc-3.1.r6/compiler/rcx1.nqh-204- ############################################## nqc-3.1.r6/compiler/rcx1.nqh-206-// set the display mode nqc-3.1.r6/compiler/rcx1.nqh:207:#define Display(v) asm { 0x33, $v : 0x0005} nqc-3.1.r6/compiler/rcx1.nqh-208- nqc-3.1.r6/compiler/rcx1.nqh-209-// IR message support nqc-3.1.r6/compiler/rcx1.nqh:210:#define SendMessage(v) asm { 0xb2, $v : 0x1000005 } nqc-3.1.r6/compiler/rcx1.nqh:211:#define ClearMessage() asm { 0x90 } nqc-3.1.r6/compiler/rcx1.nqh-212- nqc-3.1.r6/compiler/rcx1.nqh-213-// Data logging nqc-3.1.r6/compiler/rcx1.nqh:214:#define SetDatalog(size) asm { 0x52, (size), (size)>>8 } nqc-3.1.r6/compiler/rcx1.nqh:215:#define Datalog(v) asm { 0x62, $v : 0x1004203} nqc-3.1.r6/compiler/rcx1.nqh:216:#define UploadDatalog(s, n) asm { 0xa4, (s), (s)>>8, (n), (n)>>8 } nqc-3.1.r6/compiler/rcx1.nqh-217- nqc-3.1.r6/compiler/rcx1.nqh-218-// set the system clock nqc-3.1.r6/compiler/rcx1.nqh:219:#define SetWatch(h, m) asm { 0x22, (h), (m) } nqc-3.1.r6/compiler/rcx1.nqh-220- ############################################## nqc-3.1.r6/compiler/rcx1.nqh-223-#define IR_HI 1 nqc-3.1.r6/compiler/rcx1.nqh:224:#define IRMode(m) asm { 0x31, m } nqc-3.1.r6/compiler/rcx1.nqh-225-#endif ############################################## nqc-3.1.r6/compiler/rcx1.nqh-227-#ifdef __CM nqc-3.1.r6/compiler/rcx1.nqh:228:#define ClearTachoCounter(m) asm { 0x11, (m) } nqc-3.1.r6/compiler/rcx1.nqh-229-#endif ############################################## nqc-3.1.r6/compiler/rcx2.nqh-38- nqc-3.1.r6/compiler/rcx2.nqh:39:// internal constants for asm statements nqc-3.1.r6/compiler/rcx2.nqh-40-#define __ASM_SMALL_VALUE 0x01000000 ############################################## nqc-3.1.r6/compiler/rcx2.nqh-79- nqc-3.1.r6/compiler/rcx2.nqh:80:__nolist void ClearSensor(__sensor sensor) { asm { 0xd1, $sensor : 0x03000200}; } nqc-3.1.r6/compiler/rcx2.nqh-81- ############################################## nqc-3.1.r6/compiler/rcx2.nqh-108- nqc-3.1.r6/compiler/rcx2.nqh:109: __nolist void SetSensorMode(__sensor sensor, const int mode) { asm { 0x42, $sensor : 0x03000200, mode }; } nqc-3.1.r6/compiler/rcx2.nqh-110-#endif // defined(__RCX) || defined(__CM) || defined(__SWAN) ############################################## nqc-3.1.r6/compiler/rcx2.nqh-119- #define SensorMode(n) @(0xb0000 + (__sensor(n))) // read the sensor mode nqc-3.1.r6/compiler/rcx2.nqh:120: __nolist void SetSensorMode(__sensor sensor, const int mode) { asm { 0x42, $sensor : 0x03000200, mode << 5 }; } nqc-3.1.r6/compiler/rcx2.nqh-121-#endif ############################################## nqc-3.1.r6/compiler/rcx2.nqh-153- // set a sensor's type nqc-3.1.r6/compiler/rcx2.nqh:154: __nolist void SetSensorType(__sensor sensor, const int type) { asm { 0x32, $sensor : 0x03000200, (type) }; } nqc-3.1.r6/compiler/rcx2.nqh-155- ############################################## nqc-3.1.r6/compiler/rcx2.nqh-163- // Scout has some special routines to configure the light sensor nqc-3.1.r6/compiler/rcx2.nqh:164: __nolist void CalibrateSensor() { asm { 0xc0 }; } nqc-3.1.r6/compiler/rcx2.nqh:165: __nolist void SetSensorClickTime(const int &x) { asm { 0xe3, $x : __ASM_SRC_BASIC }; } nqc-3.1.r6/compiler/rcx2.nqh:166: __nolist void SetSensorHysteresis(const int &x) { asm { 0xd3, $x : __ASM_SRC_BASIC }; } nqc-3.1.r6/compiler/rcx2.nqh:167: __nolist void SetSensorLowerLimit(const int &x) { asm { 0xc3, $x : __ASM_SRC_BASIC }; } nqc-3.1.r6/compiler/rcx2.nqh:168: __nolist void SetSensorUpperLimit(const int &x) { asm { 0xb3, $x : __ASM_SRC_BASIC }; } nqc-3.1.r6/compiler/rcx2.nqh-169-#endif ############################################## nqc-3.1.r6/compiler/rcx2.nqh-219-// output functions nqc-3.1.r6/compiler/rcx2.nqh:220:__nolist void SetOutput(const int o, const int m) { asm { 0x21, (o) + (m) }; } nqc-3.1.r6/compiler/rcx2.nqh:221:__nolist void SetDirection(const int o, const int d) { asm { 0xe1, (o) + (d) }; } nqc-3.1.r6/compiler/rcx2.nqh:222:__nolist void SetPower(const int o, const int &p) { asm { 0x13, (o), $p : __ASM_SMALL_VALUE + __ASM_SRC_EXT}; } nqc-3.1.r6/compiler/rcx2.nqh-223- ############################################## nqc-3.1.r6/compiler/rcx2.nqh-246- nqc-3.1.r6/compiler/rcx2.nqh:247: #define Drive(m0, m1) asm { 0x41, DIRSPEED(m0) | DIRSPEED(m1)<<4 } nqc-3.1.r6/compiler/rcx2.nqh:248: #define OnWait(m, n, t) asm { 0xc2, (m)<<4 | DIRSPEED(n), t } nqc-3.1.r6/compiler/rcx2.nqh:249: #define OnWaitDifferent(m, n0, n1, n2, t) asm { 0x53, (m)<<4 | DIRSPEED(n0), DIRSPEED(n1)<<4 | DIRSPEED(n2), t } nqc-3.1.r6/compiler/rcx2.nqh-250- ############################################## nqc-3.1.r6/compiler/rcx2.nqh-263- nqc-3.1.r6/compiler/rcx2.nqh:264: #define ClearTachoCounter(m) asm { 0x11, (m) } nqc-3.1.r6/compiler/rcx2.nqh-265-#endif ############################################## nqc-3.1.r6/compiler/rcx2.nqh-269- // Scout and RCX2 have global versions of output control nqc-3.1.r6/compiler/rcx2.nqh:270: __nolist void SetGlobalOutput(const int o, const int m) { asm { 0x67, (o) + (m) }; } nqc-3.1.r6/compiler/rcx2.nqh:271: __nolist void SetGlobalDirection(const int o, const int d) { asm { 0x77, (o) + (d) }; } nqc-3.1.r6/compiler/rcx2.nqh:272: __nolist void SetMaxPower(const int o, const int &p) { asm { 0xa3, (o), $p : __ASM_SMALL_VALUE + __ASM_SRC_EXT}; } nqc-3.1.r6/compiler/rcx2.nqh-273- ############################################## nqc-3.1.r6/compiler/rcx2.nqh-288- #define LIGHT_OFF 0 nqc-3.1.r6/compiler/rcx2.nqh:289: __nolist void SetLight(const int x) { asm { 0x87, x }; } nqc-3.1.r6/compiler/rcx2.nqh-290-#endif ############################################## nqc-3.1.r6/compiler/rcx2.nqh-317- if (__type(x)==2) nqc-3.1.r6/compiler/rcx2.nqh:318: asm { 0x51, $x : 0x3000004 }; nqc-3.1.r6/compiler/rcx2.nqh-319- else nqc-3.1.r6/compiler/rcx2.nqh:320: asm { 0xe7, $x : 0x3000001 }; nqc-3.1.r6/compiler/rcx2.nqh-321- } nqc-3.1.r6/compiler/rcx2.nqh-322-#else nqc-3.1.r6/compiler/rcx2.nqh:323: __nolist void PlaySound(const int x) { asm { 0x51, x }; } nqc-3.1.r6/compiler/rcx2.nqh-324-#endif ############################################## nqc-3.1.r6/compiler/rcx2.nqh-332- if (__type(note)==2) nqc-3.1.r6/compiler/rcx2.nqh:333: asm { 0x23, $note : 0x2000004, dur }; nqc-3.1.r6/compiler/rcx2.nqh-334- else nqc-3.1.r6/compiler/rcx2.nqh:335: asm { 0x02, $note : 0x3000001, dur}; nqc-3.1.r6/compiler/rcx2.nqh-336- } ############################################## nqc-3.1.r6/compiler/rcx2.nqh-338- // RCX1 and CM need constant frequency nqc-3.1.r6/compiler/rcx2.nqh:339: __nolist void PlayTone(const int f, const int d) { asm { 0x23, (f), (f)>>8, (d) }; } nqc-3.1.r6/compiler/rcx2.nqh-340-#endif ############################################## nqc-3.1.r6/compiler/rcx2.nqh-344- // RCX2 nqc-3.1.r6/compiler/rcx2.nqh:345: __nolist void MuteSound() { asm { 0xd0 }; } nqc-3.1.r6/compiler/rcx2.nqh:346: __nolist void UnmuteSound() { asm { 0xe0 }; } nqc-3.1.r6/compiler/rcx2.nqh:347: __nolist void ClearSound() { asm { 0x80 }; } nqc-3.1.r6/compiler/rcx2.nqh-348-#elif defined(__SCOUT) nqc-3.1.r6/compiler/rcx2.nqh-349- // SCOUT nqc-3.1.r6/compiler/rcx2.nqh:350: __nolist void MuteSound() { asm { 0x57, 0x80 }; } nqc-3.1.r6/compiler/rcx2.nqh:351: __nolist void UnmuteSound() { asm { 0x57, 0xc0 }; } nqc-3.1.r6/compiler/rcx2.nqh:352: __nolist void SelectSounds(const int group) { asm { 0x57, group }; } nqc-3.1.r6/compiler/rcx2.nqh-353-#endif ############################################## nqc-3.1.r6/compiler/rcx2.nqh-362- // set the display mode nqc-3.1.r6/compiler/rcx2.nqh:363: __nolist void SelectDisplay(const int &v) { asm { 0x33, $v : __ASM_SRC_BASIC}; } nqc-3.1.r6/compiler/rcx2.nqh-364- ############################################## nqc-3.1.r6/compiler/rcx2.nqh-375- #define DISPLAY_USER 7 nqc-3.1.r6/compiler/rcx2.nqh:376: __nolist void SetUserDisplay(const int &v, const int prec) { asm { 0xe5, 0, prec, $v : __ASM_NO_LOCAL }; } nqc-3.1.r6/compiler/rcx2.nqh-377- #endif ############################################## nqc-3.1.r6/compiler/rcx2.nqh-394- // Scout and Spybot can send VLL commands nqc-3.1.r6/compiler/rcx2.nqh:395: __nolist void SendVLL(const int &x) { asm { 0xe2, $x : __ASM_SMALL_VALUE + __ASM_SRC_BASIC}; } nqc-3.1.r6/compiler/rcx2.nqh-396-#endif ############################################## nqc-3.1.r6/compiler/rcx2.nqh-402- nqc-3.1.r6/compiler/rcx2.nqh:403: __nolist void SendMessage(const int &v) { asm { 0xb2, $v : __ASM_SMALL_VALUE + __ASM_SRC_BASIC}; } nqc-3.1.r6/compiler/rcx2.nqh:404: __nolist void ClearMessage() { asm { 0x90 }; } nqc-3.1.r6/compiler/rcx2.nqh-405- nqc-3.1.r6/compiler/rcx2.nqh-406- #if __RCX==2 || defined(__SWAN) nqc-3.1.r6/compiler/rcx2.nqh:407: __nolist void SetMessage(const int m) { asm { 0xf7, m }; } nqc-3.1.r6/compiler/rcx2.nqh-408- #endif ############################################## nqc-3.1.r6/compiler/rcx2.nqh-413- __nolist void SendMessageWithParam(const int &m, const int &p) nqc-3.1.r6/compiler/rcx2.nqh:414: { asm { 0xc3, $m : __ASM_SMALL_VALUE + __ASM_SRC_EXT, $p : __ASM_SRC_EXT}; } nqc-3.1.r6/compiler/rcx2.nqh:415: __nolist void SetMessageByteParam(const int m, const int p) { asm { 0xa2, m, p}; } nqc-3.1.r6/compiler/rcx2.nqh:416: __nolist void SetMessageWordParam(const int m, const int p) { asm { 0xb3, m, p, p>>8}; } nqc-3.1.r6/compiler/rcx2.nqh-417- __nolist void SetMessageVariableParam(const int &m, const int &p) nqc-3.1.r6/compiler/rcx2.nqh:418: { asm { 0xc4, $m : __ASM_SMALL_VALUE + __ASM_SRC_EXT, $p : __ASM_SRC_EXT}; } nqc-3.1.r6/compiler/rcx2.nqh-419- #endif ############################################## nqc-3.1.r6/compiler/rcx2.nqh-667- __nolist void SetSerialData(const int n, const int &v) { Set(SerialData(n), v); } nqc-3.1.r6/compiler/rcx2.nqh:668: __nolist void SendSerial(const int first, const int count) { asm { 0xc2, first, count }; } nqc-3.1.r6/compiler/rcx2.nqh-669- ############################################## nqc-3.1.r6/compiler/rcx2.nqh-757- nqc-3.1.r6/compiler/rcx2.nqh:758:__nolist void ClearTimer(const int n) { asm { 0xa1, n }; } nqc-3.1.r6/compiler/rcx2.nqh-759- ############################################## nqc-3.1.r6/compiler/rcx2.nqh-761-#ifdef __SCOUT nqc-3.1.r6/compiler/rcx2.nqh:762: __nolist void SetTimerLimit(const int n, const int &x) { asm { 0xc4, n, $x : __ASM_SRC_EXT }; } nqc-3.1.r6/compiler/rcx2.nqh-763-#endif ############################################## nqc-3.1.r6/compiler/rcx2.nqh-782- nqc-3.1.r6/compiler/rcx2.nqh:783: __nolist void IncCounter(const int c) { asm { 0x97, c }; } nqc-3.1.r6/compiler/rcx2.nqh:784: __nolist void DecCounter(const int c) { asm { 0xA7, c }; } nqc-3.1.r6/compiler/rcx2.nqh:785: __nolist void ClearCounter(const int c) { asm { 0xb7, c}; } nqc-3.1.r6/compiler/rcx2.nqh-786- nqc-3.1.r6/compiler/rcx2.nqh-787- #ifdef __SCOUT nqc-3.1.r6/compiler/rcx2.nqh:788: __nolist void SetCounterLimit(const int c, const int &l) { asm { 0xd4, c, $l : __ASM_SRC_EXT }; } nqc-3.1.r6/compiler/rcx2.nqh-789- #endif ############################################## nqc-3.1.r6/compiler/rcx2.nqh-806- // only constant masks allowed nqc-3.1.r6/compiler/rcx2.nqh:807: __nolist void Event(const int e) { asm { 0x03, 2, e, e>>8 }; } nqc-3.1.r6/compiler/rcx2.nqh-808- #else nqc-3.1.r6/compiler/rcx2.nqh:809: __nolist void Event(const int &e) { asm { 0x03, $e }; } nqc-3.1.r6/compiler/rcx2.nqh-810- #endif ############################################## nqc-3.1.r6/compiler/rcx2.nqh-857- __nolist void __SetEvent(const int evt, const int src, const int type) nqc-3.1.r6/compiler/rcx2.nqh:858: { asm { 0x93, evt, src, type}; } nqc-3.1.r6/compiler/rcx2.nqh-859- nqc-3.1.r6/compiler/rcx2.nqh-860- nqc-3.1.r6/compiler/rcx2.nqh:861: __nolist void ClearEvent(const int evt) { asm { 0x93, evt, 0, 16 }; } nqc-3.1.r6/compiler/rcx2.nqh:862: __nolist void ClearAllEvents() { asm { 0x06 }; } nqc-3.1.r6/compiler/rcx2.nqh-863- __nolist void CalibrateEvent(const int evt, const int low, const int hi, const int hyst) nqc-3.1.r6/compiler/rcx2.nqh:864: { asm { 0x04, evt, hi, low, hyst }; } nqc-3.1.r6/compiler/rcx2.nqh-865- ############################################## nqc-3.1.r6/compiler/rcx2.nqh-917-// sleep for v ticks (10ms per tick) nqc-3.1.r6/compiler/rcx2.nqh:918:__nolist void Wait(const int &v) { asm { 0x43, $v : __ASM_SRC_EXT}; } nqc-3.1.r6/compiler/rcx2.nqh-919- nqc-3.1.r6/compiler/rcx2.nqh:920:__nolist void StopAllTasks() { asm { 0x50 }; } nqc-3.1.r6/compiler/rcx2.nqh:921:__nolist void SetSleepTime(const int t) { asm { 0xb1, t }; } nqc-3.1.r6/compiler/rcx2.nqh:922:__nolist void SleepNow() { asm { 0x60 }; } nqc-3.1.r6/compiler/rcx2.nqh-923- ############################################## nqc-3.1.r6/compiler/rcx2.nqh-928- #define TX_POWER_HI 1 nqc-3.1.r6/compiler/rcx2.nqh:929: __nolist void SetTxPower(const int p) { asm { 0x31, p }; } nqc-3.1.r6/compiler/rcx2.nqh-930-#endif ############################################## nqc-3.1.r6/compiler/rcx2.nqh-936- // Data logging nqc-3.1.r6/compiler/rcx2.nqh:937: __nolist void CreateDatalog(const int size) { asm { 0x52, (size), (size)>>8 }; } nqc-3.1.r6/compiler/rcx2.nqh:938: __nolist void AddToDatalog(const int &v) { asm { 0x62, $v : __ASM_NO_LOCAL + __ASM_SMALL_VALUE + 0x004203}; } nqc-3.1.r6/compiler/rcx2.nqh:939: __nolist void UploadDatalog(const int s, const int n) { asm { 0xa4, (s), (s)>>8, (n), (n)>>8 }; } nqc-3.1.r6/compiler/rcx2.nqh-940- ############################################## nqc-3.1.r6/compiler/rcx2.nqh-943- #define Watch() @(0xe0000) // read the system clock nqc-3.1.r6/compiler/rcx2.nqh:944: __nolist void SetWatch(const int h, const int m) { asm { 0x22, h, m }; } nqc-3.1.r6/compiler/rcx2.nqh-945- ############################################## nqc-3.1.r6/compiler/rcx2.nqh-958- __nolist void SetScoutRules(const int m, const int t, const int l, const int tm, const int fx) nqc-3.1.r6/compiler/rcx2.nqh:959: { asm { 0xd5, m, t, l, tm, fx }; } nqc-3.1.r6/compiler/rcx2.nqh-960- ############################################## nqc-3.1.r6/compiler/rcx2.nqh-963- #define SCOUT_MODE_POWER 1 nqc-3.1.r6/compiler/rcx2.nqh:964: __nolist void SetScoutMode(const int s) { asm { 0x47, s}; } nqc-3.1.r6/compiler/rcx2.nqh:965: __nolist void SetEventFeedback(const int &x) { asm { 0x83, $x : __ASM_SRC_BASIC}; } nqc-3.1.r6/compiler/rcx2.nqh-966-#endif ############################################## nqc-3.1.r6/compiler/rcx2.nqh-969-#if defined(__SCOUT) || __RCX==2 || defined(__SPY) || defined(__SWAN) nqc-3.1.r6/compiler/rcx2.nqh:970: __nolist void SetPriority(const int p) { asm { 0xd7, p }; } nqc-3.1.r6/compiler/rcx2.nqh-971-#endif ############################################## nqc-3.1.r6/compiler/rcx2.nqh-974-#if __RCX==2 || defined(__SPY) || defined(__SWAN) nqc-3.1.r6/compiler/rcx2.nqh:975: __nolist void Set(const int &dst, const int &src) { asm { 0x05, $dst : __ASM_SMALL_VALUE, $src }; } nqc-3.1.r6/compiler/rcx2.nqh-976-#endif ############################################## nqc-3.1.r6/compiler/rcx2.nqh-979-#if __RCX==2 || defined(__SWAN) nqc-3.1.r6/compiler/rcx2.nqh:980: __nolist void SelectProgram(const int n) { asm { 0x91, n }; } nqc-3.1.r6/compiler/rcx2.nqh-981-#endif ############################################## nqc-3.1.r6/compiler/rcx2.nqh-1042- __nolist void SetIndirectVar(const int &v, const int &n) nqc-3.1.r6/compiler/rcx2.nqh:1043: { asm { 0x05, 0x24, $v : 0x3000001, $n }; } nqc-3.1.r6/compiler/rcx2.nqh-1044-#endif ############################################## nqc-3.1.r6/compiler/rcx2.nqh-1065- * Scout support was initially released with preliminary APIs that nqc-3.1.r6/compiler/rcx2.nqh:1066: * were styled after the LASM mnemonics. Unfortunately, these mnemonics nqc-3.1.r6/compiler/rcx2.nqh-1067- * led to some rather inconsistent APIs. In order to align the Scout ############################################## nqc-3.1.r6/compiler/rcx2.nqh-1080- // global output functions nqc-3.1.r6/compiler/rcx2.nqh:1081: void _GSetOutput(const int o, const int m) { asm { 0x67, (o) + (m) }; } nqc-3.1.r6/compiler/rcx2.nqh:1082: void _GSetDirection(const int o, const int d) { asm { 0x77, (o) + (d) }; } nqc-3.1.r6/compiler/rcx2.nqh:1083: void _GSetPower(const int o, const int &p) { asm { 0xa3, (o), $p : 0x1000015}; } nqc-3.1.r6/compiler/rcx2.nqh-1084- void _GOn(const int o) { _GSetOutput(o, OUT_ON); } ############################################## nqc-3.1.r6/compiler/rcx2.nqh-1094- nqc-3.1.r6/compiler/rcx2.nqh:1095: void _WaitEvents(const int &mask) { asm { 0xb4, $mask : __ASM_SRC_EXT, 3, 0x27, 0x81 }; } // use monitor() nqc-3.1.r6/compiler/rcx2.nqh-1096- ############################################## nqc-3.1.r6/compiler/rcx2.nqh-1098- // light sensor nqc-3.1.r6/compiler/rcx2.nqh:1099: void _LSBlink(const int &x) { asm { 0xe3, $x : 0x0005 }; } // use SetSensorBlink nqc-3.1.r6/compiler/rcx2.nqh:1100: void _LSCal() { asm { 0xc0 }; } // use CalibrateSensor nqc-3.1.r6/compiler/rcx2.nqh:1101: void _LSHyst(const int &x) { asm { 0xd3, $x : 0x0005 }; } // use SetSensorHyst nqc-3.1.r6/compiler/rcx2.nqh:1102: void _LSLower(const int &x) { asm { 0xc3, $x : 0x0005 }; } // use SetSensorLower nqc-3.1.r6/compiler/rcx2.nqh:1103: void _LSUpper(const int &x) { asm { 0xb3, $x : 0x0005 }; } // use SetSensorUpper nqc-3.1.r6/compiler/rcx2.nqh-1104- ############################################## nqc-3.1.r6/compiler/rcx2.nqh-1107- void _Rules(const int m, const int t, const int l, const int tm, const int fx) nqc-3.1.r6/compiler/rcx2.nqh:1108: { asm { 0xd5, m, t, l, tm, fx }; } // see SetScoutRules nqc-3.1.r6/compiler/rcx2.nqh:1109: void _Scout(const int s) { asm { 0x47, s}; } // SetScoutMode nqc-3.1.r6/compiler/rcx2.nqh:1110: void _SetFeedback(const int &x) { asm { 0x83, $x : 0x0005}; } // SetEventFeedback nqc-3.1.r6/compiler/rcx2.nqh-1111- nqc-3.1.r6/compiler/rcx2.nqh:1112: void _Sound(const int x) { asm { 0x57, x }; } // use MuteSound, UnmuteSound and SelectSounds nqc-3.1.r6/compiler/rcx2.nqh-1113- nqc-3.1.r6/compiler/rcx2.nqh-1114- nqc-3.1.r6/compiler/rcx2.nqh:1115: void _VLL(const int &x) { asm { 0xe2, $x : 0x1000005}; } // use SendVLL nqc-3.1.r6/compiler/rcx2.nqh:1116: void _RTS() { asm { 0xf6 }; } // don't ever need this nqc-3.1.r6/compiler/rcx2.nqh-1117- ############################################## nqc-3.1.r6/compiler/rcx2.nqh-1124- #define local(n) (@((n) + 10)) nqc-3.1.r6/compiler/rcx2.nqh:1125: void Call(const int n) { asm { 0x17, n }; } nqc-3.1.r6/compiler/rcx2.nqh-1126-#endif // __SCOUT_COMPAT ############################################## nqc-3.1.r6/compiler/rcx2.nqh-1175- // function to start a given animation nqc-3.1.r6/compiler/rcx2.nqh:1176: __nolist void SetAnimation(const int t) { asm { 0xc7, t }; } nqc-3.1.r6/compiler/rcx2.nqh-1177- ############################################## nqc-3.1.r6/compiler/rcx2.nqh-1233- __nolist void FindWorld(int &v, const int relsrc, const int crit, const int& thresh) nqc-3.1.r6/compiler/rcx2.nqh:1234: { asm { 0xd5, $v : 0x3000001, 0x2a + relsrc, crit + __type(thresh), $thresh : __ASM_NO_TYPE }; } nqc-3.1.r6/compiler/rcx2.nqh:1235: __nolist void ClearWorld() { asm { 0x36 }; } nqc-3.1.r6/compiler/rcx2.nqh-1236- ############################################## nqc-3.1.r6/compiler/rcx2.nqh-1251- { nqc-3.1.r6/compiler/rcx2.nqh:1252: asm { 0x14, $v : __ASM_NO_TYPE + __ASM_SMALL_VALUE, 0x2a + n, nqc-3.1.r6/compiler/rcx2.nqh-1253- $t : __ASM_NO_TYPE + __ASM_SMALL_VALUE, 0x00 }; ############################################## nqc-3.1.r6/compiler/rcx2.nqh-1261- __nolist void SetWorldNote(int &t, const int &v) nqc-3.1.r6/compiler/rcx2.nqh:1262: { asm { 0x05, 0x2b, $t : __ASM_NO_TYPE + __ASM_SMALL_VALUE, $v}; } nqc-3.1.r6/compiler/rcx2.nqh-1263- nqc-3.1.r6/compiler/rcx2.nqh-1264- #define Stack(n) @(0x120000 + (n)) nqc-3.1.r6/compiler/rcx2.nqh:1265: __nolist void Push(const int &v) { asm { 0xe3, $v }; } nqc-3.1.r6/compiler/rcx2.nqh:1266: __nolist void Pop(const int n) { asm { 0x01, n }; } nqc-3.1.r6/compiler/rcx2.nqh-1267- __nolist void SetStack(const int i, const int &v) { Set(Stack(i), v); } ############################################## nqc-3.1.r6/compiler/rcx2.nqh-1310- nqc-3.1.r6/compiler/rcx2.nqh:1311: __nolist void StartTask(const int t) { asm { 0x71, t}; } nqc-3.1.r6/compiler/rcx2.nqh:1312: __nolist void StopTask(const int t) { asm { 0x81, t}; } nqc-3.1.r6/compiler/rcx2.nqh-1313- ############################################## nqc-3.1.r6/compiler/rcx2.nqh-1374- { nqc-3.1.r6/compiler/rcx2.nqh:1375: asm { 0xe3, $nIndex }; nqc-3.1.r6/compiler/rcx2.nqh:1376: asm { 0xe3, $nCmd }; nqc-3.1.r6/compiler/rcx2.nqh:1377: asm { 0xe3, $nHiByte }; nqc-3.1.r6/compiler/rcx2.nqh:1378: asm { 0xe3, $nLoByte }; nqc-3.1.r6/compiler/rcx2.nqh:1379: asm { 0x17, 34 }; nqc-3.1.r6/compiler/rcx2.nqh:1380: asm { 0x01, 4 }; nqc-3.1.r6/compiler/rcx2.nqh-1381- } nqc-3.1.r6/compiler/rcx2.nqh-1382- __nolist void SendRCXMessage(const int &nMessage) nqc-3.1.r6/compiler/rcx2.nqh:1383: { asm { 0xe3, $nMessage, 0x17, 37, 0x01, 1 }; } nqc-3.1.r6/compiler/rcx2.nqh-1384- __nolist void SendAllRangeMessage(const int &nMessage, const int &nData) nqc-3.1.r6/compiler/rcx2.nqh:1385: { asm { 0xe3, $nMessage, 0xe3, $nData, 0x17, 38, 0x01, 2 }; } nqc-3.1.r6/compiler/rcx2.nqh-1386- ############################################## nqc-3.1.r6/compiler/rcx2.nqh-1388- __nolist void Disp(const int &display) nqc-3.1.r6/compiler/rcx2.nqh:1389: { asm { 0xe3, $display, 0x17, 42, 0x01, 1 }; } nqc-3.1.r6/compiler/rcx2.nqh-1390- ############################################## nqc-3.1.r6/compiler/rcx2.nqh-1443- __nolist void BasicMove (const int &move, const int &time) nqc-3.1.r6/compiler/rcx2.nqh:1444: { asm { 0xe3, $move, 0xe3, $time, 0x17, 43, 0x01, 2 }; } nqc-3.1.r6/compiler/rcx2.nqh-1445- ############################################## nqc-3.1.r6/compiler/rcx2.nqh-1453- { nqc-3.1.r6/compiler/rcx2.nqh:1454: asm { 0xe3, $nSound }; nqc-3.1.r6/compiler/rcx2.nqh:1455: asm { 0xe3, $nDisplay }; nqc-3.1.r6/compiler/rcx2.nqh:1456: asm { 0xe3, $nMovement }; nqc-3.1.r6/compiler/rcx2.nqh:1457: asm { 0xe3, $nRepeat }; nqc-3.1.r6/compiler/rcx2.nqh:1458: asm { 0xe3, $nTime }; nqc-3.1.r6/compiler/rcx2.nqh:1459: asm { 0x17, 44 }; nqc-3.1.r6/compiler/rcx2.nqh:1460: asm { 0x01, 5 }; nqc-3.1.r6/compiler/rcx2.nqh-1461- } ############################################## nqc-3.1.r6/compiler/rcx2.nqh-1463- __nolist void RandomMove (const int &move, const int &time) nqc-3.1.r6/compiler/rcx2.nqh:1464: { asm { 0xe3, $move, 0xe3, $time, 0x17, 46, 0x01, 2 }; } nqc-3.1.r6/compiler/rcx2.nqh-1465- nqc-3.1.r6/compiler/rcx2.nqh-1466- __nolist void FancyMove (const int &move, const int &time) nqc-3.1.r6/compiler/rcx2.nqh:1467: { asm { 0xe3, $move, 0xe3, $time, 0x17, 47, 0x01, 2 }; } nqc-3.1.r6/compiler/rcx2.nqh-1468- nqc-3.1.r6/compiler/rcx2.nqh-1469- __nolist void SlowDownMove (const int &move, const int &time) nqc-3.1.r6/compiler/rcx2.nqh:1470: { asm { 0xe3, $move, 0xe3, $time, 0x17, 48, 0x01, 2 }; } nqc-3.1.r6/compiler/rcx2.nqh-1471- nqc-3.1.r6/compiler/rcx2.nqh-1472- __nolist void SpeedUpMove (const int &move, const int &time) nqc-3.1.r6/compiler/rcx2.nqh:1473: { asm { 0xe3, $move, 0xe3, $time, 0x17, 49, 0x01, 2 }; } nqc-3.1.r6/compiler/rcx2.nqh-1474- ############################################## nqc-3.1.r6/compiler/rcx2.nqh-1476- __nolist void Sum2Mem (const int &nMem, const int &nValue) nqc-3.1.r6/compiler/rcx2.nqh:1477: { asm { 0xe3, $nMem, 0xe3, $nValue, 0x17, 50, 0x01, 2 }; } nqc-3.1.r6/compiler/rcx2.nqh-1478- ############################################## nqc-3.1.r6/compiler/rcx2.nqh-1480- __nolist void Sum4Mem (const int &nMem, const int &nValue) nqc-3.1.r6/compiler/rcx2.nqh:1481: { asm { 0xe3, $nMem, 0xe3, $nValue, 0x17, 51, 0x01, 2 }; } nqc-3.1.r6/compiler/rcx2.nqh-1482- ############################################## nqc-3.1.r6/compiler/rcx2.nqh-1685- nqc-3.1.r6/compiler/rcx2.nqh:1686: __nolist void WaitMS(const int &v) { asm { 0x47, $v : __ASM_SRC_EXT}; } nqc-3.1.r6/compiler/rcx2.nqh-1687- ############################################## nqc-3.1.r6/compiler/rcx2.nqh-1879- __nolist void ClearAll(const int &nCmdFlags) nqc-3.1.r6/compiler/rcx2.nqh:1880: { asm { 0xc7, $nCmdFlags : (__ASM_NO_TYPE | __ASM_SMALL_VALUE) }; } nqc-3.1.r6/compiler/rcx2.nqh-1881- nqc-3.1.r6/compiler/rcx2.nqh-1882- __nolist void BitSet(const int &result, const int &operand) nqc-3.1.r6/compiler/rcx2.nqh:1883: { asm { 0x7e, $result : __ASM_SRC_EXT, $operand : __ASM_SRC_EXT }; } nqc-3.1.r6/compiler/rcx2.nqh-1884- nqc-3.1.r6/compiler/rcx2.nqh-1885- __nolist void BitClear(const int &result, const int &operand) nqc-3.1.r6/compiler/rcx2.nqh:1886: { asm { 0x7f, $result : __ASM_SRC_EXT, $operand : __ASM_SRC_EXT }; } nqc-3.1.r6/compiler/rcx2.nqh-1887- nqc-3.1.r6/compiler/rcx2.nqh-1888- __nolist void Negate(const int &result, const int &operand) nqc-3.1.r6/compiler/rcx2.nqh:1889: { asm { 0x9b, $result : __ASM_SRC_EXT, $operand : __ASM_SRC_EXT }; } nqc-3.1.r6/compiler/rcx2.nqh-1890- ############################################## nqc-3.1.r6/default/parse.cpp-61-#define GOTO 312 nqc-3.1.r6/default/parse.cpp:62:#define ASM 313 nqc-3.1.r6/default/parse.cpp-63-#define INT 314 ############################################## nqc-3.1.r6/default/parse.tab.h-86- GOTO = 312, nqc-3.1.r6/default/parse.tab.h:87: ASM = 313, nqc-3.1.r6/default/parse.tab.h-88- INT = 314, ############################################## nqc-3.1.r6/default/parse.tab.h-153-#define GOTO 312 nqc-3.1.r6/default/parse.tab.h:154:#define ASM 313 nqc-3.1.r6/default/parse.tab.h-155-#define INT 314 ############################################## nqc-3.1.r6/history.txt-66- nqc-3.1.r6/history.txt:67:* changed asm statement to use $ rather than & nqc-3.1.r6/history.txt-68- ############################################## nqc-3.1.r6/nqc/nqc.cpp-324- case 'c': nqc-3.1.r6/nqc/nqc.cpp:325: req.fGenLASM = true; nqc-3.1.r6/nqc/nqc.cpp-326- break; ############################################## nqc-3.1.r6/nqc/nqc.cpp-1108- fprintf(stdout," -s: include source code in listings if possible\n"); nqc-3.1.r6/nqc/nqc.cpp:1109: fprintf(stdout," -c: generate LASM compatible listings\n"); nqc-3.1.r6/nqc/nqc.cpp-1110- fprintf(stdout," -v: verbose\n"); ############################################## nqc-3.1.r6/rcxlib/RCX_Disasm.h-58- nqc-3.1.r6/rcxlib/RCX_Disasm.h:59:class RCX_Disasm nqc-3.1.r6/rcxlib/RCX_Disasm.h-60-{ ############################################## nqc-3.1.r6/rcxlib/RCX_Image.cpp-101-{ nqc-3.1.r6/rcxlib/RCX_Image.cpp:102: RCX_Disasm disasm(fTargetType); nqc-3.1.r6/rcxlib/RCX_Image.cpp-103- char line[256]; ############################################## nqc-3.1.r6/rcxlib/RCX_Image.cpp-107- { nqc-3.1.r6/rcxlib/RCX_Image.cpp:108: sprintf(line, "%s Var %d = %s\n", genLASM ? ";" : "***", fVars[i].fIndex, fVars[i].fName.c_str()); nqc-3.1.r6/rcxlib/RCX_Image.cpp-109- dst->Print(line); ############################################## nqc-3.1.r6/rcxlib/RCX_Image.cpp-118- GetChunkTypeName(typeName, f.fType); nqc-3.1.r6/rcxlib/RCX_Image.cpp:119: sprintf(line, "\n%s %s %d", genLASM ? ";" : "***", typeName, f.fNumber); nqc-3.1.r6/rcxlib/RCX_Image.cpp-120- dst->Print(line); ############################################## nqc-3.1.r6/rcxlib/RCX_Image.cpp-134- nqc-3.1.r6/rcxlib/RCX_Image.cpp:135: sprintf(line, "\n%sTotal size: %d bytes\n", genLASM ? ";" : "", GetSize()); nqc-3.1.r6/rcxlib/RCX_Image.cpp-136- dst->Print(line); ############################################## nqc-3.1.r6/rcxlib/RCX_Disasm.cpp-824-{ nqc-3.1.r6/rcxlib/RCX_Disasm.cpp:825: fGenLASM = genLASM; nqc-3.1.r6/rcxlib/RCX_Disasm.cpp-826- fCurType = type; ############################################## nqc-3.1.r6/rcxlib/RCX_Disasm.cpp-840- nqc-3.1.r6/rcxlib/RCX_Disasm.cpp:841:// if (genLASM) tagCount = 0; // no source listing in LASM compatible output nqc-3.1.r6/rcxlib/RCX_Disasm.cpp-842- ############################################## nqc-3.1.r6/.pc/writable-swap-inst-len.patch/rcxlib/RCX_Disasm.cpp-824-{ nqc-3.1.r6/.pc/writable-swap-inst-len.patch/rcxlib/RCX_Disasm.cpp:825: fGenLASM = genLASM; nqc-3.1.r6/.pc/writable-swap-inst-len.patch/rcxlib/RCX_Disasm.cpp-826- fCurType = type; ############################################## nqc-3.1.r6/.pc/writable-swap-inst-len.patch/rcxlib/RCX_Disasm.cpp-840- nqc-3.1.r6/.pc/writable-swap-inst-len.patch/rcxlib/RCX_Disasm.cpp:841:// if (genLASM) tagCount = 0; // no source listing in LASM compatible output nqc-3.1.r6/.pc/writable-swap-inst-len.patch/rcxlib/RCX_Disasm.cpp-842- ############################################## nqc-3.1.r6/.pc/compiler-warnings.patch/nqc/nqc.cpp-324- case 'c': nqc-3.1.r6/.pc/compiler-warnings.patch/nqc/nqc.cpp:325: req.fGenLASM = true; nqc-3.1.r6/.pc/compiler-warnings.patch/nqc/nqc.cpp-326- break; ############################################## nqc-3.1.r6/.pc/compiler-warnings.patch/nqc/nqc.cpp-1108- fprintf(stdout," -s: include source code in listings if possible\n"); nqc-3.1.r6/.pc/compiler-warnings.patch/nqc/nqc.cpp:1109: fprintf(stdout," -c: generate LASM compatible listings\n"); nqc-3.1.r6/.pc/compiler-warnings.patch/nqc/nqc.cpp-1110- fprintf(stdout," -v: verbose\n");