RomRaider Logo

RomRaider

Open Source ECU Tools
 FAQ •  Register •  Login 

RomRaider

Documentation

Community

Developers

It is currently Sat Feb 21, 2026 10:23 pm

All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Does anyone know what this boolean function is for?
PostPosted: Wed Jul 17, 2024 3:11 pm 
Offline
Newbie

Joined: Tue Jul 05, 2022 10:20 pm
Posts: 26
I found this digging through my AE5R100V rom. It is used in a lot of places to switch between 2 different tables. At first it looked to me like it was related to what the current gear is and I thought maybe it was there to indicate if the trans was in 1st. But the more I look at where the result is used, the less that makes sense.

Here's the function:
Code:

                             bool __stdcall True/False_?(void)
             bool              r0:1           <RETURN>
                             True/False_?                                    XREF[178]:   00014992(c), 00036f50(c),
                                                                                                       00036fb4(*), 0003db30(c),
                                                                                                       0003dc44(*), 0003e508(c),
                                                                                                       0003e728(*), 0004000c(c),
                                                                                                       00040158(*), 0004a554(c),
                                                                                                       0004a5ac(*), 00058cae(c),
                                                                                                       00058eec(*), 0005c8fc(c),
                                                                                                       0005ca28(*), 0008da84(c),
                                                                                                       0008dc8c(*), 000b5b3e(c),
                                                                                                       000b5c0c(*), 000bd03c(c), [more]

        00029904   D6 0D           mov.l       @(PTR_BOOL_0002993c,pc),r6                  = ffff690f
        00029906   60 60           mov.b       @r6=>BOOL_ffff690f,r0                            = FALSE
        00029908   88 01           cmp/eq     1,r0
        0002990a   00 0B           rts
        0002990c   00 29           _movt       r0
                             -------------------------------------------------------------


The best I can tell, BOOL_ffff690f is written to from a function at 0002937c (AE5R100V) that is too long to post. I have attached the .bin if anyone wants to take a look.


You do not have the required permissions to view the files attached to this post.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 20 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Style based on FI Subsilver by phpBBservice.nl