root/platform/a1000/sub/100b/lib.c

/* [<][>][^][v][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. hook_raw_image_addr
  2. vid_get_viewport_live_fb

   1 #include "platform.h"
   2 
   3 char *hook_raw_image_addr()
   4 {
   5         // Found 0x11B96B80 at ROM:FFC377A0
   6         // Found 0x107D58E0 at ROM:FFC756CC
   7         // 0x51C0 + 0x18 found at ROM:FFC4C504  
   8         return (char*) (*(int*)(0x51C0+0x18) ? 0x11B96B80 : 0x107D58E0);
   9 }
  10 
  11 void *vid_get_viewport_live_fb()
  12 {
  13     void **fb=(void **)0x6A68;  // at: ROM:FFC9FF3C
  14     unsigned char buff = *((unsigned char*)0x68DC);     // at: ROM:FFC9FF34
  15     if (buff == 0) {
  16         buff = 2;
  17     }
  18     else {
  19         buff--;
  20     }
  21     return fb[buff];
  22 }

/* [<][>][^][v][top][bottom][index][help] */