X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/e70140224f6b9736f01d6cc314687d93a8bb8c97..c86cc30801a3ea718df1daa45e989cb40f8c5950:/armsrc/iso14443.c diff --git a/armsrc/iso14443.c b/armsrc/iso14443.c index fab7336b..fbc3a6d4 100644 --- a/armsrc/iso14443.c +++ b/armsrc/iso14443.c @@ -873,6 +873,15 @@ void AcquireRawAdcSamplesIso14443(DWORD parameter) //----------------------------------------------------------------------------- void ReadSRI512Iso14443(DWORD parameter) { + ReadSTMemoryIso14443(parameter,0x0F); +} +void ReadSRIX4KIso14443(DWORD parameter) +{ + ReadSTMemoryIso14443(parameter,0x7F); +} + +void ReadSTMemoryIso14443(DWORD parameter,DWORD dwLast) +{ BYTE i = 0x00; // Make sure that we start from off, since the tags are stateful; @@ -961,8 +970,9 @@ void ReadSRI512Iso14443(DWORD parameter) DbpString("Tag memory dump, block 0 to 15"); cmd1[0] = 0x08; i = 0x00; + dwLast++; for (;;) { - if (i == 0x10) { + if (i == dwLast) { DbpString("System area block (0xff):"); i = 0xff; }