Contribute
Register

Apple Intel AMD/ATI Framebuffers

Joined
Jan 4, 2015
Messages
354
Motherboard
Gigabyte Z390 Designare
CPU
i7 9700K
Graphics
RX 560
Mac
  1. MacBook Pro
Well, the script seems to work but the values of framebuffers are completely different from Mojave:

Code:
------------------------AMD10000Controller.kext-------------------------

Sleipnir (6) @ 0x6c1a8
, , , , ,
000000000000000000040000040300000001013120000000
120401010000000000040000000100000001031140000000
200106060000000000040000000100000001042130000000
100005050000000000080000040200000001050000000000
220502020000000000040000000100000001425110000000
110200000000000000040000000100000001460100000000

Itata (6) @ 0x6cd88
, , , , ,
000000000000000000040000040300000001015320000000
220502020000000000040000040300000001026310000000
120401010000000000040000040300000001031340000000
200105060000000000040000040300000001042330000000
100006050000000000040000040300000001053360000000
210304040000000000040000040300000001064350000000

Ucayali (6) @ 0x6ce18
, , , , ,
110203030000000002000000000100000801014122000000
110202040000000002000000000100000801023113000000
210301030000000000040000000100000001031340000000
200103010000000000040000000100000001042130000000
100005050000000000040000000100000001055360000000
220504020000000000040000000100000001066150000000

Exmoor (6) @ 0x6cea8
, , , , ,
120406060000000002000000000100000001015120000000
220502040000000002000000000100000001026111000000
120401030000000000040000040300000001034340000000
110203010000000000040000000100000001043130000000
210305050000000000040000040300000001052360000000
100004020000000000040000000100000001061150000000

Baudo (5) @ 0x6cf38
, , , ,
200105050000000002000000000100003905010800000000
200106060000000000040000000100000001024330000000
100005050000000000040000000100000001031320000000
210304040000000000040000000100000001046350000000
110203030000000000040000000100000001053340000000

Wenamu (6) @ 0x6d2e8
, , , , ,
000000000000000000040000040300000001015320000000
220502020000000000040000040300000001026310000000
120401010000000000040000040300000001031340000000
200105060000000000040000040300000001042330000000
100006050000000000040000040300000001053360000000
210304040000000000040000040300000001064350000000

Valdivia (6) @ 0x6d378
, , , , ,
110203030000000002000000000100000801014122000000
110202040000000002000000000100000801023112000000
210301030000000000040000000100000001031340000000
200103010000000000040000000100000001042330000000
100005050000000000040000000100000001055360000000
220504020000000000040000000100000001066350000000

Envira (6) @ 0x6d468
, , , , ,
9d0506000000000002000000000100000801015122000000
220502020000000002000000000100000801026112000000
120401010000000000040000000100000001031340000000
200105060000000000040000000100000001042330000000
100006050000000000040000000100000001054360000000
110203030000000000040000000100000001063350000000

Xingu (5) @ 0x6d658
, , , ,
500100000200000002000000000100003905010800000000
200106060000000000040000000100000001024330000000
100005050000000000040000000100000001031320000000
210304040000000000040000000100000001046350000000
110203030000000000040000000100000001053340000000

Kamarang (4) @ 0x6d6d8
, , ,
000000000000000000040000040300000001010100000000
220502020000000000040000040300000001020100000000
120401010000000000040000040300000001030000000000
100005050000000000080000040200000001040000000000

Catatumbo (6) @ 0x6d738
, , , , ,
200106060000000000040000040300000001015320000000
220502020000000000040000040300000001026310000000
120401010000000000040000040300000001031340000000
200105060000000000040000040300000001042330000000
100006050000000000040000040300000001053360000000
210304040000000000040000040300000001064350000000

Hullinco (2) @ 0x6e378
,
070000000000000000040000040300000001010100000000
120402020000000000040000000100000000420000000000

Guanta (4) @ 0x6e3a8
, , ,
220500000000000000040000040300000001010100000000
200105050000000000040000040300000001020100000000
110204040000000000040000040300000001030100000000
210303030000000000040000040200000001040000000000

Japura (6) @ 0x6fbd8
, , , , ,
000000000000000002000000000100000801015122000000
220502020000000002000000000100000801026112000000
120401010000000000040000000100000001031340000000
200105060000000000040000000100000001042330000000
100006050000000000040000000100000001054360000000
110203030000000000040000000100000001063350000000

Donguil (6) @ 0x6fdd8
, , , , ,
060600000000000000040000000100000001012320000000
100005060000000000040000000100000001021310000000
200106050000000000040000000100000001034340000000
110204040000000000040000000100000001043330000000
210303030000000000040000000100000001056360000000
120402020000000000040000000100000001065350000000

Araguaia (6) @ 0x6fe68
, , , , ,
220501010000000000040000000100000001013320000000
100005060000000000040000000100000001021310000000
110204040000000000040000000100000001034340000000
200106050000000000040000000100000001042330000000
210303030000000000040000000100000001056360000000
120402020000000000040000000100000001065350000000

Rapel (4) @ 0x76258
, , ,
000000000000000000040000040300000001010100000000
220502020000000000040000040300000001020100000000
110203030000000000040000040300000001030100000000
100005050000000000040000040300000001040100000000

Zutia (6) @ 0x7e2b8
, , , , ,
204c00007400000000040000040300000001010100000000
100006060000000000040000040300000001020100000000
200105050000000000040000040300000001030100000000
110204040000000000040000040300000001040100000000
210303030000000000040000040300000001050100000000
220501010000000000040000040300000001060100000000

Iriri (4) @ 0x7e348
, , ,
120402020000000000040000040300000001010100000000
220502020000000000040000040300000001020100000000
120401010000000000040000040300000001030000000000
100005050000000000080000040200000001040000000000

Ichabod (1) @ 0x7e9e8

a00200000400000000040000000100000000400000000000

Baladi (6) @ 0x7f0d8
, , , , ,
000000000000000000040000040300000001030000000000
120403030000000000040000040300000001010000000000
110201010000000000040000040300000001020000000000
210302020000000000040000040300000001040000000000
220504040000000000040000040300000001050000000000
100005050000000000040000040300000001060000000000

-------------------------AMD7000Controller.kext-------------------------

Ramen (6) @ 0x5a038
, , , , ,
000000000000000002000000000100003905010800000000
200105060000000000080000040200000001020000000000
100003050000000000040000040300000001034340000000
110201010000000000040000000100000001043130000000
210304030000000000040000040300000001056360000000
120402020000000000040000000100000001065150000000

Tako (6) @ 0x5a138
, , , , ,
000000000000000002000000000100000001015120000000
220502040000000002000000000100000001026111000000
120401030000000000040000040300000001034340000000
110203010000000000040000000100000001043130000000
210305050000000000040000040300000001052360000000
100004020000000000040000000100000001061150000000

Namako (4) @ 0x5a1c8
, , ,
200105050000000002000000000100000001015120000000
220502020000000002000000000100000001026111000000
120401010000000000040000040300000001034340000000
110203030000000000040000040300000001043330000000

Aji (4) @ 0x5a2a8
, , ,
000000000000000000040000040300000001010100000000
120405010000000000040000040300000001020100000000
220504020000000004000000140200000001030000000000
000003060000000000080000040200000001040000000000

Buri (4) @ 0x5a308
, , ,
110201040000000002000000000100003905010000000000
100005050000000000040000040300000009020000000000
110201010000000000040000040300000009030000000000
210302020000000000080000040200000001040000000000

Chutoro (5) @ 0x5a368
, , , ,
120403030000000002000000000100001901010000000000
120403030000000000040000040300000001020100000000
110201010000000000040000000100000009030000000000
210302020000000000040000000100000009040000000000
220504040000000000040000040300000001050000000000

Dashimaki (4) @ 0x5a3e8
, , ,
000000000000000000040000040300000001010100000000
120402020000000000040000040300000001020000000000
220503050000000004000000140200000001030100000000
000004040000000000080000040200000001040000000000

Ebi (5) @ 0x5a458
, , , ,
6bb704000000000002000000000100001901010000000000
120403030000000000040000040300000001020100000000
110201010000000000040000000100000009030100000000
210302020000000000040000000100000009040100000000
220504040000000000040000040300000001050100000000

Gari (5) @ 0x5a4d8
, , , ,
000000000000000002000000000100001901010000000000
120403030000000000040000040300000001020100000000
110201010000000000040000000100000009030000000000
210302020000000000040000000100000009040000000000
220504040000000000040000040300000001050000000000

Futomaki (4) @ 0x5a558
, , ,
000000000000000000040000040300000001010100000000
120404010000000000040000040300000001020100000000
220505020000000004000000140200000001030000000000
000006060000000000080000040200000001040000000000

Hamachi (4) @ 0x5a5b8
, , ,
110201030000000000040000040300000001010100000000
120405010000000000040000040300000001020100000000
220504020000000004000000140200000001030000000000
000003060000000000080000040200000001040000000000

OPM (6) @ 0x5a688
, , , , ,
000000000000000000040000040300000001000100000000
110201010000000000040000040300000001000100000000
210302020000000000040000040300000001000100000000
120403030000000000040000040300000001000100000000
220504040000000000040000040300000001000100000000
100005050000000000040000140300000001000100000000

Ikura (1) @ 0x5a728

060600000000000000080000040200000001010000000000

IkuraS (6) @ 0x5a748
, , , , ,
000000000000000000040000040300000001014320000000
110201030000000000040000040300000001023310000000
210302040000000000040000040300000001036340000000
120403010000000000040000040300000001045330000000
220504020000000000040000040300000001052360000000
100005050000000000040000040300000001061350000000

Junsai (6) @ 0x5a7d8
, , , , ,
200106060000000000040000040300000001000100000000
120403010000000000040000040300000001000100000000
220504020000000000040000040300000001000100000000
110201030000000000040000040300000001000100000000
210302040000000000040000040300000001000100000000
100005050000000000040000040300000001000100000000

Kani (1) @ 0x5a868

200106060000000000080000040200000001010000000000

KaniS (6) @ 0x5a888
, , , , ,
000000000000000000040000040300000001014320000000
110201030000000000040000040300000001023310000000
210302040000000000040000040300000001036340000000
120403010000000000040000040300000001045330000000
220504020000000000040000040300000001052360000000
100005050000000000040000040300000001061350000000

DashimakiS (4) @ 0x5a918
, , ,
200106060000000000040000040300000001010100000000
120402020000000000040000040300000001020100000000
220503050000000004000000140200000001030000000000
000004040000000000080000040200000001040000000000

Maguro (1) @ 0x5a978

110201010000000000080000040200000001010000000000

MaguroS (6) @ 0x5a998
, , , , ,
000000000000000000040000040300000001014320000000
110201030000000000040000040300000001023310000000
210302040000000000040000040300000001036340000000
120403010000000000040000040300000001045330000000
220504020000000000040000040300000001052360000000
100005050000000000040000040300000001061350000000

-------------------------AMD8000Controller.kext-------------------------

Exmoor (6) @ 0x5b258
, , , , ,
000000000000000002000000000100000001015120000000
220502040000000002000000000100000001026111000000
120401030000000000040000040300000001034340000000
110203010000000000040000000100000001043130000000
210305050000000000040000040300000001052360000000
100004020000000000040000000100000001061150000000

Baladi (6) @ 0x5b438
, , , , ,
0cb304000000000000040000040300000001030000000000
120403030000000000040000040300000001010000000000
110201010000000000040000040300000001020000000000
210302020000000000040000040300000001040000000000
220504040000000000040000040300000001050000000000
100005050000000000040000040300000001060000000000

-------------------------AMD9000Controller.kext-------------------------

Exmoor (6) @ 0x5ffc8
, , , , ,
9fdb04000000000002000000000100000001015120000000
220502040000000002000000000100000001026111000000
120401030000000000040000040300000001034340000000
110203010000000000040000000100000001043130000000
210305050000000000040000040300000001052360000000
100004020000000000040000000100000001061150000000

OPM (6) @ 0x60058
, , , , ,
200105050000000000040000040300000000000100000000
100001010000000000040000040300000000000100000000
200102020000000000040000040300000000000100000000
110203030000000000040000040300000000000100000000
210304040000000000040000040300000000000100000000
120405050000000000040000040300000000000100000000

MalteseS (1) @ 0x60108

71e104000000000000080000040200000001010000000000

Lagotto (4) @ 0x60128
, , ,
000000000000000000040000040300000001010000000000
110204010000000000080000040200000001020000000000
210305030000000004000000040200000001030000000000
000001050000000004000000040200000001040000000000

GreyhoundS (1) @ 0x60198

060600000000000000080000040200000001010000000000

Maltese (6) @ 0x60228
, , , , ,
000000000000000000040000040300000001012320000000
100001030000000000040000040300000001021310000000
200102040000000000040000040300000001034340000000
110203010000000000040000040300000001043330000000
210304020000000000040000040300000001056360000000
120405050000000000040000040300000001065350000000

Labrador (6) @ 0x602e8
, , , , ,
05e804000000000002000000000100000001013120000000
210302040000000002000000000100000001024111000000
110201030000000000040000040300000001032340000000
100003010000000000040000000100000001041130000000
200105050000000000040000040300000001056360000000
120404020000000000040000000100000001065150000000

Basset (4) @ 0x60378
, , ,
220505050000000002000000000100000001013120000000
210302020000000002000000000100000001024111000000
110201010000000000040000040300000001032340000000
100003030000000000040000040300000001041330000000

Greyhound (6) @ 0x60438
, , , , ,
12e404000000000000040000040300000001012320000000
100001030000000000040000040300000001021310000000
200102040000000000040000040300000001034340000000
110203010000000000040000040300000001043330000000
210304020000000000040000040300000001056360000000
120405050000000000040000040300000001065350000000

Baladi (6) @ 0x604c8
, , , , ,
220506060000000000040000040300000001030000000000
120403030000000000040000040300000001010000000000
110201010000000000040000040300000001020000000000
210302020000000000040000040300000001040000000000
220504040000000000040000040300000001050000000000
100005050000000000040000040300000001060000000000

-------------------------AMD9500Controller.kext-------------------------

Orinoco (6) @ 0x71488
, , , , ,
28d805000000000000040000040300000001010100000000
120406010000000000040000040300000001020100000000
220504030000000000080000040200000001030000000000
110201020000000000080000040200000001040000000000
210305040000000004000000040000000001050000000000
000003060000000000040000000100000001460100000000

Exmoor (6) @ 0x71528
, , , , ,
060600000000000002000000000100000001015120000000
220502040000000002000000000100000001026111000000
120401030000000000040000040300000001034340000000
110203010000000000040000000100000001043130000000
210305050000000000040000040300000001052360000000
100004020000000000040000000100000001061150000000

Elqui (5) @ 0x715b8
, , , ,
200105050000000002000000000100000001014120000000
110202040000000002000000000100000001023111000000
210301030000000000040000000100000001031350000000
200103010000000000040000000100000001041350000000
120404020000000000040000040300000001050100000000

Florin (6) @ 0x71638
, , , , ,
000000000000000002000000000100000001014120000000
110202040000000002000000000100000001023111000000
210301030000000000040000000100000001031340000000
200103010000000000040000000100000001042130000000
100005050000000000040000000100000001055360000000
220504020000000000040000000100000001066150000000

Sinu (6) @ 0x71748
, , , , ,
b8df05000000000002000000000100000001014120000000
110202040000000002000000000100000001023111000000
210301030000000000040000000100000001031340000000
200103010000000000040000000100000001042130000000
100005050000000000040000000100000001055360000000
220504020000000000040000000100000001066150000000

Yelcho (6) @ 0x717d8
, , , , VGA,
120406060000000000040000000100000001011100000000
120406010000000000040000000100000001032100000000
220504030000000000080000040200000001050000000000
210305040000000000040000000100000001425100000000
100000000000000000040000000100000001446100000000
200100000000000000040000000100000001460100000000

Acre (3) @ 0x718c8
, ,
b8df05000000000000040000040300000001010100000000
110202010000000000080000040200000001020000000000
210305040000000004000000040200000001030000000000

Huallaga (3) @ 0x71918
, ,
000000000000000000040000040300000001010100000000
120404030000000000040000040300000001020100000000
110201020000000000080000040200000001030000000000

Berbice (5) @ 0x71998
, , , ,
e8e705000000000002000000000100003905010800000000
200101010000000000040000000100000001024330000000
100002020000000000040000000100000001031320000000
210303030000000000040000000100000001045350000000
110204040000000000040000000100000001053340000000

Longavi (5) @ 0x71a18
, , , ,
000000000000000002000000000100003905010800000000
200101010000000000040000000100000001024330000000
100002020000000000040000000100000001031320000000
210303030000000000040000000100000001045350000000
110204040000000000040000000100000001053340000000

Tolten (5) @ 0x71b08
, , , ,
000000000000000002000000000100000001014120000000
110202040000000002000000000100000001023111000000
210301030000000000040000000100000001031350000000
200103010000000000040000000100000001041350000000
120404020000000000040000000100000001050100000000

Palena (5) @ 0x71b88
, , , ,
000000000000000002000000000100003905010800000000
200101010000000000040000000100000001024330000000
100002020000000000040000000100000001031320000000
210303030000000000040000000100000001045350000000
110204040000000000040000000100000001053340000000

Caroni (5) @ 0x71c08
, , , ,
000000000000000002000000000100000001014120000000
110202040000000002000000000100000001023111000000
210301030000000000040000000100000001031350000000
200103010000000000040000000100000001041350000000
120404020000000000040000000100000001050100000000

Salado (5) @ 0x71c88
, , , ,
000000000000000000040000040300000000000100000000
100002020000000000040000040300000000000100000000
200101010000000000040000040300000000000100000000
110204040000000000040000040300000000000100000000
210303030000000000040000040300000000000100000000

Guariba (6) @ 0x71d08
, , , , ,
000000000000000000040000040300000001010100000000
120406010000000000040000040300000001020100000000
220504030000000000040000040300000001030100000000
110201020000000000080000040200000001040000000000
210305040000000004000000040200000001050000000000
000003060000000000040000000100000001060100000000

Dayman (6) @ 0x71d98
, , , , ,
200102050000000000040000040300000001010100000000
120406010000000000040000040300000001020100000000
220504030000000000040000040300000001030100000000
110201020000000000080000040200000001040000000000
210305040000000004000000040200000001050000000000
000003060000000000040000000100000001060100000000

Baladi (6) @ 0x71e28
, , , , ,
200102050000000000040000040300000001030000000000
120403030000000000040000040300000001010000000000
110201010000000000040000040300000001020000000000
210302020000000000040000040300000001040000000000
220504040000000000040000040300000001050000000000
100005050000000000040000040300000001060000000000

OPM (5) @ 0x71eb8
, , , ,
200106060000000000040000040300000000000100000000
110202020000000000040000040300000000000100000000
210303030000000000040000040300000000000100000000
120401010000000000040000040300000000000100000000
100004040000000000040000040300000000000100000000

Forrahue (6) @ 0x71f38
, , , , ,
000000000000000000040000000100000001011320000000
200101010000000000040000000100000001022310000000
100002020000000000040000000100000001033340000000
210303030000000000040000000100000001044330000000
110204040000000000040000000100000001055360000000
220505050000000000040000000100000001066350000000
 
Joined
Jan 4, 2015
Messages
354
Motherboard
Gigabyte Z390 Designare
CPU
i7 9700K
Graphics
RX 560
Mac
  1. MacBook Pro
Forget about it, the script doesn't parse the data correctly. Using ati-personalty.pl perl script, nothing has changed...
 
Joined
Jun 6, 2019
Messages
1
Motherboard
Asus z170
CPU
i7 6700k
Graphics
P400
Mac
  1. MacBook Pro
  2. Mac mini
Forget about it, the script doesn't parse the data correctly. Using ati-personalty.pl perl script, nothing has changed...

Maybe an extra 8 bytes of offset for line fseek($b,$f->addr); is needed in Catalina.
Try this.
PHP:
<?php
function padHex($d,$l) {return str_pad(dechex($d),$l,'0',STR_PAD_LEFT);}
function toHex($s){$i=0;$t='';while(isset($s[$i])){$t.=padHex(ord($s[$i++]),2);}return $t;}
function toStr($h){$s='';$i=4;while($i-->0){$s.=chr($h>>(8*$i)&0xFF);}return $s;}
$ctype=array('02000000'=>'LVDS','04000000'=>'DVI-D','08000000'=>'SVIDEO','10000000'=>'VGA','00020000'=>'DVI-SL','00040000'=>'DP','00080000'=>'HDMI','00100000'=>'UNKNOWN');
foreach(glob('/System/Library/Extensions/'.(file_exists('/System/Library/Extensions/AMD7000Controller.kext') ? 'AMD' : 'ATI').'*Controller.kext') as $file) {
    echo str_pad(substr(strrchr($file,'/'),1),72,'-',STR_PAD_BOTH)."\n\n";
    $file=array_pop(glob("$file/Contents/MacOS/*"));
    $a=popen("otool -Xvt $file",'r');
    $b=fopen($file,'r');
    while ($l=fgets($a)) {
        if (strncmp($l,'__ZN',4)!=0 || ($i=strpos($l,'Info10createInfo'))===false) continue;
        $f=new stdClass();
        $f->name=substr($l,5+is_numeric($l[5]),$i-5-is_numeric($l[5]));
        while(($l=fgets($a)) && strpos($l,'ret')===false) {
            if (strpos($l,'leaq')!==false) $f->addr=hexdec(substr($l,6,strpos($l,'(')-6));
            if (!isset($f->ports) && strpos($l,"movb\t$")!==false) $f->ports=hexdec(substr($l,strpos($l,'$'),strpos($l,',')-strpos($l,'$')))&0xFF;
            if (strpos($l,'jl')!==false) $i=hexdec(substr($l,4));
            if (strpos($l,'jmp')!==false) $i=hexdec(substr($l,4)) + 0x1A;
        }
        $f->addr+=$i;
        echo "$f->name ($f->ports) @ 0x".dechex($f->addr)."\n";
        $t=$p=array();
        fseek($b,$f->addr + 8);
        while($f->ports-- > 0) $p[]=$ctype[substr($t[]=toHex(fread($b,24)),0,8)];
        echo implode(', ',$p)."\n";
        echo implode("\n",$t)."\n\n";
    }
    pclose($a);
    fclose($b);
}

And echo "$f->name ($f->ports) @ 0x".dechex($f->addr)."\n"; can be changed to echo "$f->name ($f->ports) @ 0x".dechex($f->addr + 8)."\n"; to get the actual address if you need it.
 
Last edited:
Joined
Jan 4, 2015
Messages
354
Motherboard
Gigabyte Z390 Designare
CPU
i7 9700K
Graphics
RX 560
Mac
  1. MacBook Pro
@songyang : thanks... but way over by poor brain :) I'll try when I have the time as the old Mojave script doesn't work neither since 10.14.6.
 

OMK

Joined
Aug 10, 2017
Messages
15
Motherboard
Asrock Z270M Extreme4 Z270
CPU
Intel Core i7-7700K, 4,2 GHz Kaby Lake
Graphics
Radeon RX 580
Mac
  1. MacBook
  2. MacBook Air
  3. MacBook Pro
  4. Mac mini
Mobile Phone
  1. Android
  2. iOS
Friendly amendment for Catalina.


Code:
<?php
function padHex($d,$l) {return str_pad(dechex($d),$l,'0',STR_PAD_LEFT);}
function toHex($s){$i=0;$t='';while(isset($s[$i])){$t.=padHex(ord($s[$i++]),2);}return $t;}
function toStr($h){$s='';$i=4;while($i-->0){$s.=chr($h>>(8*$i)&0xFF);}return $s;}
$ctype=array('02000000'=>'LVDS','04000000'=>'DVI-D','08000000'=>'SVIDEO','10000000'=>'VGA','00020000'=>'DVI-SL','00040000'=>'DP','00080000'=>'HDMI','00100000'=>'UNKNOWN');
foreach(glob('/System/Library/Extensions/'.(file_exists('/System/Library/Extensions/AMD7000Controller.kext') ? 'AMD' : 'ATI').'*Controller.kext') as $file) {
    echo str_pad(substr(strrchr($file,'/'),1),72,'-',STR_PAD_BOTH)."\n\n";
    $file=array_pop(glob("$file/Contents/MacOS/*"));
    $a=popen("otool -Xvt $file",'r');
    $b=fopen($file,'r');
    while ($l=fgets($a)) {
        if (strncmp($l,'__ZN',4)!=0 || ($i=strpos($l,'Info10createInfo'))===false) continue;
        $f=new stdClass();
        $f->name=substr($l,5+is_numeric($l[5]),$i-5-is_numeric($l[5]));
        while(($l=fgets($a)) && strpos($l,'ret')===false) {
            if (strpos($l,'leaq')!==false) $f->addr=hexdec(substr($l,6,strpos($l,'(')-6));
            if (!isset($f->ports) && strpos($l,"movb\t$")!==false) $f->ports=hexdec(substr($l,strpos($l,'$'),strpos($l,',')-strpos($l,'$')))&0xFF;
            if (strpos($l,'jl')!==false) $i=hexdec(substr($l,4));
            if (strpos($l,'jmp')!==false) $i=hexdec(substr($l,4)) + 0x1D;
        }
        $f->addr+=$i;
        echo "$f->name ($f->ports) @ 0x".dechex($f->addr +8 )."\n";
        $t=$p=array();
        fseek($b,$f->addr +8 );
        while($f->ports-- > 0) $p[]=$ctype[substr($t[]=toHex(fread($b,24)),0,8)];
        echo implode(', ',$p)."\n";
        echo implode("\n",$t)."\n\n";
    }
    pclose($a);
    fclose($b);
}


On Catalina that results in:

Code:
...

Orinoco (6) @ 0x71490
DP, DP, HDMI, HDMI, DVI-D, DP
000400000403000000010101000000001204060100000000
000400000403000000010201000000002205040300000000
000800000402000000010300000000001102010200000000
000800000402000000010400000000002103050400000000
040000000400000000010500000000000000030600000000
000400000001000000014601000000002001000000000000
...

Address is off..
 
Top