--_003_0CA34E53CBC6490DAF0484AED39AC252ivp1_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi all, I've returned to a project of a few weeks ago, and run straight into a problem After finding some SDHC cards I bought had partitions, I was advised to find the MBR by using the LBA information in the partition table, like so read_fat: clr sec_adr_lo ;sector 0 clr sec_adr_hi mov #ram2,w8 call getsector ;read sector into 512 bytes RAM ;find Boot Sector / Root Directory mov ram2,w0 ;test first byte of sector 0 bra z,partition ;if 0, then MBR + partition, rea= d 0x1c6 - 0x1c9 ...... partition: mov ram2+#0x1c6,w0 ;fetch 0x1c6 and 0x1c7, LSW mov w0,sec_adr_lo mov ram2+#0x1c8,w0 ;fetch 0x1c8 and 0x1c9, MSW mov w0,sec_adr_hi mov #ram2,w8 call getsector ;read sector In the attached picture, of a 4GB, Frhed shows that the MBR is at sector 0x2000 (or 0x2000 * 0x200 bytes/sector =3D byte 0x400000), as 0x1c6/0x1c8 say, yet requesting that sector returns nothing What am I missing ? I've tried reseting/re-initialising the card and reading sector 0x2000 but with the same result TIA Joe=20 --_003_0CA34E53CBC6490DAF0484AED39AC252ivp1_ Content-Type: image/gif; name="partition_2000.gif" Content-Description: partition_2000.gif Content-Disposition: attachment; filename="partition_2000.gif"; size=5628; creation-date="Sun, 18 Dec 2011 19:07:58 GMT"; modification-date="Sun, 18 Dec 2011 19:07:58 GMT" Content-Transfer-Encoding: base64 R0lGODlhvwIiAYAAAAAAAP///ywAAAAAvwIiAQAC/oSPqcvtD6OctNqLs968+w+G4kiW5omm6sq2 7gvH8kzX9o3n+s73/g8MCofEovGITCqXzKbzCY1Kp9Sq9YrNarfcrvcLDovH5LL5jE6r1+y2+w2P y+f0uv2Oz+v3/L7/DxgoOEhYaFgTkKi4yNjo+AgZKTlJWWl5iZmpucnZOYnhGSo6SlpqeooqeniR 2ur6Chsruwk6a3uLm6ubuWqx+wscLHxaO2x8jJzc2Fuh7PwMPVscTV1t7clMcd2JUAlweaAYnjge UC5ugP5Nns6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LHEXS17YJremuFWZM8/73PZa0rzoNS5t VeDd/NoVsfSV73mZ+1PUCje0u4VvdQ0sz+kamL39nW9x6wthEOqXu7PNK3Vrmt3rDljAfV2tf68q 3q2K+MPxbTA1Q/xfE/82uBNmsYUXvN7karjFNE6vh1Vc4gcD+LAb7nGHC4ziIJP4ny6msH1fHOTs YnihOD5wkpmsYxWP98RDZnCUqSzlLF95xd0d7ZG1kZ4n6rGPewwkH8ucjDiWWc1Z/KIe1XwMNndR zGeWs5udYecxr3nOb2ZPmv28/ucq3hnNgTZGm8M8x0OfmcyoOaKjHw3pSEt60jTaMaV3aOlL4zDT mq4hp1nYaDo+0U3D0V721iKo6Yl6jPBRFarJ5g2sFLC50skpf7Z36lsT6lyunvUwaf1rG9fsWb2u NZKDN7xcAztQvNa1s5H93WI/+9jBjq61a1tt4yk723dq9rKzTexpX3vYvoY2x6RdvW1D21Ho+3bw wu3u717bffGGN2a5LTx125jdBRE3ee397nJTO+DGvve6e6fvecPJ2/hGN7j9rXBs11vgl/30qhIu bzox3NwQj3bHyV1wjg88477DuMUbtHFhf9zfAB95dFtecVxvF9/8joDDCc7y/pWLeOIhl+6+ET7z g7cp5ePW+cN7bvCjd1yD8U520H8+9HY33Og4b/plX05xekP9diY/FNEzfvN/U93lHke61iPO9aej PU1fhznYc252n1ed5lIXOqiXvvC6q9zqYXe73MUed4lvfYVh77bei853uOMd1q9m4qgdb7dVS2/y DGI85YFSp1KTbEiSd7VWOg360It+9DYjvemTfvrU91v1rF9961+fddjL/uSyhyDta6/A2+OegLrf vf967/v8AT/49Bs+8d9n/OOrL/nKJx/zm++950Pf1NNXvfSrr7zrY1/b2ze99rtfcvCP/vviT3v5 QU/+87su/epPHfvbP7r3/sO/c/KfP+bqb//J4T//jts//xHnf/83OAEogH5DgAXINweIgAvIgA3o gA8IgRFYRpdHgRVogdeQOxeogRvIgcCQgR0IgiEoggPxQbbQaiOIgimYIR/oZy24EFEUGowRFC94 guwAE7F2g/hAgzhoGzwIHT6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/bcOD/sgrCNWii+JdWeEdzsvt7a8U7ruajoTeG+oE+6HDHNa8POKqW9Vq zdW03urD4NhM/d69Ed9j7MC7PL7BnqUFXsR69tJXHOClvde4fd++nd3Ogdmqbd+/reATvOfbANfJ MdXSTuzMHo1Q6q2Dpte5rMxmnMX47ezFDe3VHu2zKOymTe2HTL+vHB+xzY9zbayNrNkkgaryu+zH W6G0De6pve7vjvDurvCKru6HPd/gC961se2i8evTTcXOi9ydPuC7ehida962Wu4G7/DyfvALP/Dt Pu+jLOH2LhwTb8VfytaxMd8NX94AD/JjhNqssDryzb7z/J3yPW/wP0rzPH/x+ovt9IEuDk7ZE27q vYvh8VvqAJ7h32vdRHzhr47WpF6vT4/rsA6XVn3rYJ2vlt3agrrUzdzljQ7pk772CvhJNd7jUZ7j K52YQx6zP4toQh7Ox9x5m/fNTe7jcS/lez+5Nkv36mz43HvUU374gL/rj+4PLR6+mE75gd72wB3Q 5sLnm4/nIM35n++0eQ76o9+0ok/6p/+cYav6q49DBQAAADs= --_003_0CA34E53CBC6490DAF0484AED39AC252ivp1_ Content-Type: text/plain; name="ATT00001.txt" Content-Description: ATT00001.txt Content-Disposition: attachment; filename="ATT00001.txt"; size=208; creation-date="Sun, 18 Dec 2011 19:07:58 GMT"; modification-date="Sun, 18 Dec 2011 19:07:58 GMT" Content-Transfer-Encoding: base64 LS0gDQpodHRwOi8vd3d3LnBpY2xpc3QuY29tIFBJQy9TWCBGQVEgJiBsaXN0IGFyY2hpdmUNClZp ZXcvY2hhbmdlIHlvdXIgbWVtYmVyc2hpcCBvcHRpb25zIGF0DQpodHRwOi8vbWFpbG1hbi5taXQu ZWR1L21haWxtYW4vbGlzdGluZm8vcGljbGlzdA0K --_003_0CA34E53CBC6490DAF0484AED39AC252ivp1_-- .