X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/6949aca9fa0e37539fc277bac78e3d7a22117467..93f57590455b1c57ff09119b1de407ccd1d7ed62:/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; }