• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

BASIC compiler/interpreter for PIC32MX/MZ-80K


Commit MetaInfo

Revisiondb4465223479a141e642ff2f9110cd6514b43d4b (tree)
Zeit2019-01-07 11:27:00
AutorKatsumi <kmorimatsu@sour...>
CommiterKatsumi

Log Message

& operator.

Ändern Zusammenfassung

Diff

--- a/mips/megalopa/value.c
+++ b/mips/megalopa/value.c
@@ -77,6 +77,13 @@ char* get_simple_value(void){
7777 check_obj_space(1);
7878 g_object[g_objpos++]=0x00021023; // subu v0,zero,v0
7979 g_intconst=-g_intconst;
80+ } else if (b1=='&') {
81+ // '&' operator
82+ g_srcpos++;
83+ i=get_var_number();
84+ if (i<0) return ERR_SYNTAX;
85+ check_obj_space(1);
86+ g_object[g_objpos++]=0x27C20000|(i*4); // addiu v0,s8,xxxx
8087 } else {
8188 // Main routine of getting value here
8289 if (b1=='+') g_srcpos++; // Ignore unary '+' operator