The following warnings occurred:
Warning [2] Undefined property: MyLanguage::$archive_pages - Line: 2 - File: printthread.php(287) : eval()'d code PHP 8.2.18 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/printthread.php(287) : eval()'d code 2 errorHandler->error_callback
/printthread.php 287 eval
/printthread.php 117 printthread_multipage



Mario Kart Wii Gecko Codes, Cheats, & Hacks
Disable the button ok in vs mode - Printable Version

+- Mario Kart Wii Gecko Codes, Cheats, & Hacks (https://mariokartwii.com)
+-- Forum: Hacks/Modding (https://mariokartwii.com/forumdisplay.php?fid=14)
+--- Forum: Code Support / Help / Requests (https://mariokartwii.com/forumdisplay.php?fid=61)
+--- Thread: Disable the button ok in vs mode (/showthread.php?tid=1914)

Pages: 1 2 3


RE: Disable the button ok in vs mode - Vega - 11-22-2021

That's not an issue with CodeWrite, that's an issue with your source.

temptemptemp.asm.2 <--- the 2 stands for line 2 of the source. CodeWrite says the reason for the error is that is out of operand range.

Code:
lhz r12, 0x8200 (r12)

lhz is a signed instruction

syntax:
lhz rD, VALUE (rA)

VALUE is in a 16-bit signed range. 0x8200 is not withing the signed range, that's why you got the error.

16-bit signed range is..
0xFFFF8000 --> 0 --> 0x7FFF (-32768 --> -0 --> 32767)

https://mariokartwii.com/showthread.php?tid=830
https://mariokartwii.com/showthread.php?tid=940

Read those two threads if you don't want to read the 'Go from noobs to Veteran ASM coder' thread I linked in my earlier post.


RE: Disable the button ok in vs mode - coco - 11-22-2021

(11-22-2021, 03:35 PM)Vega Wrote: That's not an issue with CodeWrite, that's an issue with your source.

temptemptemp.asm.2 <--- the 2 stands for line 2 of the source. CodeWrite says the reason for the error is that is out of operand range.

Code:
lhz r12, 0x8200 (r12)

lhz is a signed instruction

syntax:
lhz rD, VALUE (rA)

VALUE is in a 16-bit signed range. 0x8200 is not withing the signed range, that's why you got the error.

16-bit signed range is..
0xFFFF8000 --> 0 --> 0x7FFF  (-32768 --> -0 --> 32767)

https://mariokartwii.com/showthread.php?tid=830
https://mariokartwii.com/showthread.php?tid=940

Read those two threads if you don't want to read the 'Go from noobs to Veteran ASM coder' thread I linked in my earlier post.
oh ok i have the habit to manipule every number whitout problem of lenght or other. And i start to learn i don't know every function/order in asm.
to fix this:
```asm
ori r12, r12, 0x8200

lhz r12, 0 (r12)
```

oh how include code in message ?
we can not include like a Mastering Markdown


RE: Disable the button ok in vs mode - Vega - 11-22-2021

Use the code tags to put stuff in a code box.

This thread has gone off topic quite a bit now, lol. So if you need help on ASM in general, post it on the proper ASM tutorial thread.


RE: Disable the button ok in vs mode - coco - 11-22-2021

(11-22-2021, 06:59 PM)Vega Wrote: Use the code tags to put stuff in a code box.

This thread has gone off topic quite a bit now, lol. So if you need help on ASM in general, post it on the proper ASM tutorial thread.

ok thanks