{"id":17942,"date":"2024-10-26T14:19:29","date_gmt":"2024-10-26T14:19:29","guid":{"rendered":"http:\/\/www.max-sperling.bplaced.net\/?p=17942"},"modified":"2025-08-29T14:00:23","modified_gmt":"2025-08-29T14:00:23","slug":"registers","status":"publish","type":"post","link":"http:\/\/www.max-sperling.bplaced.net\/?p=17942","title":{"rendered":"Registers"},"content":{"rendered":"<h2>Overview<\/h2>\n<p>The registers are the fastest accessible memory for the CPU. Normally, each core of a CPU has its own set of registers. The most used architectures are x86-32, x86-64 (for Desktop PC&#8217;s) and A32, A64 (for Embedded Devices).<\/p>\n<table>\n<tr>\n<th>Instruction Set<\/th>\n<th>x86-16<\/th>\n<th>x86-32<\/th>\n<th>AMD64\/x86-64<\/th>\n<th>A32<\/th>\n<th>A64<\/th>\n<\/tr>\n<tr>\n<td>General Purpose<\/td>\n<td>AX &#8211; DX, SI, DI<\/td>\n<td>EAX &#8211; EDX, ESI, EDI<\/td>\n<td>RAX &#8211; RDX, RSI, RDI, R8 &#8211; R15<\/td>\n<td>R0 &#8211; R10<\/td>\n<td>X0 &#8211; X15, X18 &#8211; X28<\/td>\n<\/tr>\n<tr>\n<td>Segment Register<\/td>\n<td>CS, DS, SS, ES<\/td>\n<td>CS, DS, SS, ES, FS, GS<\/td>\n<td>CS, DS, SS, ES, FS, GS<\/td>\n<td>&#8211;<\/td>\n<td>&#8211;<\/td>\n<\/tr>\n<tr>\n<td>Base Ptr. \/<br \/>Frame Ptr.<\/td>\n<td>BP<\/td>\n<td>EBP<\/td>\n<td>RBP<\/td>\n<td>R11 (FP)<\/td>\n<td>X29 (FP)<\/td>\n<\/tr>\n<tr>\n<td>Intra Procedure<\/td>\n<td>&#8211;<\/td>\n<td>&#8211;<\/td>\n<td>&#8211;<\/td>\n<td>R12<\/td>\n<td>X16, X17<\/td>\n<\/tr>\n<tr>\n<td>Stack Pointer<\/td>\n<td>SP<\/td>\n<td>ESP<\/td>\n<td>RSP<\/td>\n<td>R13 (SP)<\/td>\n<td>SP<\/td>\n<\/tr>\n<tr>\n<td>Link Register<\/td>\n<td>&#8211;<\/td>\n<td>&#8211;<\/td>\n<td>&#8211;<\/td>\n<td>R14 (LR)<\/td>\n<td>X30 (LR)<\/td>\n<\/tr>\n<tr>\n<td>Instr. Ptr. \/<br \/>Progr. Counter<\/td>\n<td>IP<\/td>\n<td>EIP<\/td>\n<td>RIP<\/td>\n<td>R15 (PC)<\/td>\n<td>PC<\/td>\n<\/tr>\n<tr>\n<th>Manufacturer<\/th>\n<th colspan=\"2\">Intel<\/th>\n<th>AMD\/Intel<\/th>\n<th colspan=\"2\">ARM<\/th>\n<\/tr>\n<\/table>\n<hr>\n<h2>AMD\/Intel<\/h2>\n<pre>\r\n00     07      15              31              48              63\r\n |-----------------------------RAX-----------------------------| 64 Bits\r\n |--------------EAX-------------|                                32 Bits\r\n |------AX------|                                                16 Bits\r\n |--AL--||--AH--|                                                 8 Bits\r\n<\/pre>\n<pre>\r\n00     07      15              31              48              63\r\n |-----------------------------R8------------------------------| 64 Bits\r\n |--------------R8d-------------|                                32 Bits\r\n |------R8w-----|                                                16 Bits\r\n |-R8b--|                                                         8 Bits\r\n<\/pre>\n<hr>\n<h2>ARM<\/h2>\n<p><a href=\"http:\/\/www.max-sperling.bplaced.net\/?p=14828\">Why is ARM using a link register (LR)?<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Overview The registers are the fastest accessible memory for the CPU. Normally, each core of a CPU has its own<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false},"categories":[83],"tags":[],"_links":{"self":[{"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=\/wp\/v2\/posts\/17942"}],"collection":[{"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=17942"}],"version-history":[{"count":12,"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=\/wp\/v2\/posts\/17942\/revisions"}],"predecessor-version":[{"id":19121,"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=\/wp\/v2\/posts\/17942\/revisions\/19121"}],"wp:attachment":[{"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=17942"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=17942"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=17942"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}