{"id":2859,"date":"2024-10-12T12:27:01","date_gmt":"2024-10-12T11:27:01","guid":{"rendered":"https:\/\/www.robertprice.co.uk\/robblog\/?p=2859"},"modified":"2024-10-12T12:27:01","modified_gmt":"2024-10-12T11:27:01","slug":"rc2024-part-8-refining-the-rotary-encoder-z80-assembly-language-program","status":"publish","type":"post","link":"https:\/\/www.robertprice.co.uk\/robblog\/rc2024-part-8-refining-the-rotary-encoder-z80-assembly-language-program\/","title":{"rendered":"RC2024 \u2013 Part 8 \u2013 Refining The Rotary Encoder Z80 Assembly Language Program"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">In my last Retro Challenge post I was able to<a href=\"https:\/\/www.robertprice.co.uk\/robblog\/rc2024-part-7-reading-the-rotary-encoder-using-z80-assembly-language\/\"> read the rotary encoder from Z80 assembly language on my RC2014 Classic 2 computer<\/a>. However, the code was too sensitive. This was because I was looking for all changes to the CLK1 signal, instead of just the transition from low to high.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This turned out to be simpler than I though, and I was able to remove a large(ish) block of code. The old code I had a check_case1 and check_case2 that can be removed and replaced with the following.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>; now work out what direction we are moving.\n; if CLK1 is 1 then we can can check DT1 to get the\n; direction of rotation. If it's 0, we need to go \n; back to the start of the loop.\n    ld  a,(input)          \n    and CLK1\n    cp  CLK1 \n    jr  nz, loop            \n\n; this is where we check DT1. If 1 we are turning left.\n    ld  a, (input)\n    and DT1\n    cp  0 \n    jr  nz, left<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">In the first part I&#8217;m loading the input data from memory. I then mask off everything but the CLK1 bit and see if it is high. If it&#8217;s not, I go back to the start of the program.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In the second part I do the same for the DT1 bit, but check if it&#8217;s low. If high, I jump to the turning left code. If it is low, I carry on the to the turning right code, which directly follows.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The completed code looks like this.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>    OUTPUT rotaryencoderledcontrol2.z80\n\n; On the RC2014 Classic 2 running from BASIC the Z80\n; code runs from address $9000. \n    ORG $9000\n\n; The input and output ports to use.\nINPUT_PORT  EQU $DE\nOUTPUT_PORT EQU $03\n\n; The input bits from the rotary encoder.\nCLK1    EQU %00000001\nDT1     EQU %00000010\nSW1     EQU %00000100\n\n; show the inital led value\n    ld  a,(output)\n    out (OUTPUT_PORT),a\n\nloop:\n; load the last clk value into register b\n    ld  a,(lastclk)\n    ld  b,a\n\n; read the input port and store in \"input\"\n    in  a,(INPUT_PORT)\n    ld  (input),a\n\n; now check if the switch on first rotary encode has been\n; pressed. If it has jump to end\n    and SW1\n    cp  SW1\n    jr  z, end\n\n; now see if clk1 matches the lastclk. If it does loop\n    ld  a,(input)\n    and CLK1\n    ld  (lastclk),a\n    cp  b\n    jr  z, loop\n\n; now work out what direction we are moving.\n; if CLK1 is 1 then we can can check DT1 to get the\n; direction of rotation. If it's 0, we need to go \n; back to the start of the loop.\n    ld  a,(input)          \n    and CLK1\n    cp  CLK1 \n    jr  nz, loop            \n\n; this is where we check DT1. If 1 we are turning left.\n    ld  a, (input)\n    and DT1\n    cp  0 \n    jr  nz, left\n\n; we must be turning right so rotate the output to the right\n; and store it before going back to the start of the loop.\nright:\n    ld  a,(output)\n    rrca\n    out (OUTPUT_PORT),a\n    ld  (output),a\n\n    jr  loop\n\n; we must be turning left so rotate the output to the left\n; and store it before going back to the start of the loop.\nleft:\n    ld  a,(output)\n    rlca\n    out (OUTPUT_PORT),a\n    ld  (output),a\n\n    jp  loop\n\n; the switch has been pressed, so we clear the output\n; and exit.\nend:\n    ld  a,0\n    out (OUTPUT_PORT),a\n\n    ret\n\ninput:\n    db  0\noutput:\n    db  %00000001\nlastclk:\n    db  0<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">I also swapped the JP instructions to JR instructions because the code is small. This saves a few bytes.<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"RC2014 Rotary Encoder - Refined Z80 Assembly Language Test\" width=\"840\" height=\"473\" src=\"https:\/\/www.youtube.com\/embed\/M8fVazj3TEs?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">This is only a small refinement, but it makes the Rotary Encoder Module so much more usable.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In my last Retro Challenge post I was able to read the rotary encoder from Z80 assembly language on my RC2014 Classic 2 computer. However, the code was too sensitive. This was because I was looking for all changes to the CLK1 signal, instead of just the transition from low to high. This turned out &hellip; <a href=\"https:\/\/www.robertprice.co.uk\/robblog\/rc2024-part-8-refining-the-rotary-encoder-z80-assembly-language-program\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;RC2024 \u2013 Part 8 \u2013 Refining The Rotary Encoder Z80 Assembly Language Program&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":2855,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[113],"tags":[117,115,131,119],"class_list":["post-2859","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-rc2024","tag-rc2014","tag-rc2024","tag-rotary-encoder","tag-z80"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>RC2024 \u2013 Part 8 \u2013 Refining The Rotary Encoder Z80 Assembly Language Program - Robert Price<\/title>\n<meta name=\"description\" content=\"A small update to the RC2014 Z80 Assembly Language program that reads from the Rotary Encoder Module and displays on the Digital I\/O module.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.robertprice.co.uk\/robblog\/rc2024-part-8-refining-the-rotary-encoder-z80-assembly-language-program\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"RC2024 \u2013 Part 8 \u2013 Refining The Rotary Encoder Z80 Assembly Language Program - Robert Price\" \/>\n<meta property=\"og:description\" content=\"A small update to the RC2014 Z80 Assembly Language program that reads from the Rotary Encoder Module and displays on the Digital I\/O module.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.robertprice.co.uk\/robblog\/rc2024-part-8-refining-the-rotary-encoder-z80-assembly-language-program\/\" \/>\n<meta property=\"og:site_name\" content=\"Robert Price\" \/>\n<meta property=\"article:published_time\" content=\"2024-10-12T11:27:01+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.robertprice.co.uk\/robblog\/assets\/RC2014-rotaryencoder-digitalio.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"788\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"rob\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"rob\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/rc2024-part-8-refining-the-rotary-encoder-z80-assembly-language-program\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/rc2024-part-8-refining-the-rotary-encoder-z80-assembly-language-program\\\/\"},\"author\":{\"name\":\"rob\",\"@id\":\"https:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/#\\\/schema\\\/person\\\/fac6d5b076e0e14e1fb13e15b542a6c5\"},\"headline\":\"RC2024 \u2013 Part 8 \u2013 Refining The Rotary Encoder Z80 Assembly Language Program\",\"datePublished\":\"2024-10-12T11:27:01+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/rc2024-part-8-refining-the-rotary-encoder-z80-assembly-language-program\\\/\"},\"wordCount\":233,\"image\":{\"@id\":\"https:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/rc2024-part-8-refining-the-rotary-encoder-z80-assembly-language-program\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/assets\\\/RC2014-rotaryencoder-digitalio.jpg\",\"keywords\":[\"RC2014\",\"RC2024\",\"Rotary Encoder\",\"Z80\"],\"articleSection\":[\"RC2024\"],\"inLanguage\":\"en-GB\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/rc2024-part-8-refining-the-rotary-encoder-z80-assembly-language-program\\\/\",\"url\":\"https:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/rc2024-part-8-refining-the-rotary-encoder-z80-assembly-language-program\\\/\",\"name\":\"RC2024 \u2013 Part 8 \u2013 Refining The Rotary Encoder Z80 Assembly Language Program - Robert Price\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/rc2024-part-8-refining-the-rotary-encoder-z80-assembly-language-program\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/rc2024-part-8-refining-the-rotary-encoder-z80-assembly-language-program\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/assets\\\/RC2014-rotaryencoder-digitalio.jpg\",\"datePublished\":\"2024-10-12T11:27:01+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/#\\\/schema\\\/person\\\/fac6d5b076e0e14e1fb13e15b542a6c5\"},\"description\":\"A small update to the RC2014 Z80 Assembly Language program that reads from the Rotary Encoder Module and displays on the Digital I\\\/O module.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/rc2024-part-8-refining-the-rotary-encoder-z80-assembly-language-program\\\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/rc2024-part-8-refining-the-rotary-encoder-z80-assembly-language-program\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/rc2024-part-8-refining-the-rotary-encoder-z80-assembly-language-program\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/assets\\\/RC2014-rotaryencoder-digitalio.jpg\",\"contentUrl\":\"https:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/assets\\\/RC2014-rotaryencoder-digitalio.jpg\",\"width\":1200,\"height\":788,\"caption\":\"RC2014 with Rotary Encoder and Digital IO modules\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/rc2024-part-8-refining-the-rotary-encoder-z80-assembly-language-program\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"RC2024 \u2013 Part 8 \u2013 Refining The Rotary Encoder Z80 Assembly Language Program\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/#website\",\"url\":\"https:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/\",\"name\":\"Robert Price\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/#\\\/schema\\\/person\\\/fac6d5b076e0e14e1fb13e15b542a6c5\",\"name\":\"rob\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/6f0eb511179100a4e968abc70403e33686e6ab3e992e392bedd2ccac01da666c?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/6f0eb511179100a4e968abc70403e33686e6ab3e992e392bedd2ccac01da666c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/6f0eb511179100a4e968abc70403e33686e6ab3e992e392bedd2ccac01da666c?s=96&d=mm&r=g\",\"caption\":\"rob\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"RC2024 \u2013 Part 8 \u2013 Refining The Rotary Encoder Z80 Assembly Language Program - Robert Price","description":"A small update to the RC2014 Z80 Assembly Language program that reads from the Rotary Encoder Module and displays on the Digital I\/O module.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.robertprice.co.uk\/robblog\/rc2024-part-8-refining-the-rotary-encoder-z80-assembly-language-program\/","og_locale":"en_GB","og_type":"article","og_title":"RC2024 \u2013 Part 8 \u2013 Refining The Rotary Encoder Z80 Assembly Language Program - Robert Price","og_description":"A small update to the RC2014 Z80 Assembly Language program that reads from the Rotary Encoder Module and displays on the Digital I\/O module.","og_url":"https:\/\/www.robertprice.co.uk\/robblog\/rc2024-part-8-refining-the-rotary-encoder-z80-assembly-language-program\/","og_site_name":"Robert Price","article_published_time":"2024-10-12T11:27:01+00:00","og_image":[{"width":1200,"height":788,"url":"https:\/\/www.robertprice.co.uk\/robblog\/assets\/RC2014-rotaryencoder-digitalio.jpg","type":"image\/jpeg"}],"author":"rob","twitter_card":"summary_large_image","twitter_misc":{"Written by":"rob","Estimated reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.robertprice.co.uk\/robblog\/rc2024-part-8-refining-the-rotary-encoder-z80-assembly-language-program\/#article","isPartOf":{"@id":"https:\/\/www.robertprice.co.uk\/robblog\/rc2024-part-8-refining-the-rotary-encoder-z80-assembly-language-program\/"},"author":{"name":"rob","@id":"https:\/\/www.robertprice.co.uk\/robblog\/#\/schema\/person\/fac6d5b076e0e14e1fb13e15b542a6c5"},"headline":"RC2024 \u2013 Part 8 \u2013 Refining The Rotary Encoder Z80 Assembly Language Program","datePublished":"2024-10-12T11:27:01+00:00","mainEntityOfPage":{"@id":"https:\/\/www.robertprice.co.uk\/robblog\/rc2024-part-8-refining-the-rotary-encoder-z80-assembly-language-program\/"},"wordCount":233,"image":{"@id":"https:\/\/www.robertprice.co.uk\/robblog\/rc2024-part-8-refining-the-rotary-encoder-z80-assembly-language-program\/#primaryimage"},"thumbnailUrl":"https:\/\/www.robertprice.co.uk\/robblog\/assets\/RC2014-rotaryencoder-digitalio.jpg","keywords":["RC2014","RC2024","Rotary Encoder","Z80"],"articleSection":["RC2024"],"inLanguage":"en-GB"},{"@type":"WebPage","@id":"https:\/\/www.robertprice.co.uk\/robblog\/rc2024-part-8-refining-the-rotary-encoder-z80-assembly-language-program\/","url":"https:\/\/www.robertprice.co.uk\/robblog\/rc2024-part-8-refining-the-rotary-encoder-z80-assembly-language-program\/","name":"RC2024 \u2013 Part 8 \u2013 Refining The Rotary Encoder Z80 Assembly Language Program - Robert Price","isPartOf":{"@id":"https:\/\/www.robertprice.co.uk\/robblog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.robertprice.co.uk\/robblog\/rc2024-part-8-refining-the-rotary-encoder-z80-assembly-language-program\/#primaryimage"},"image":{"@id":"https:\/\/www.robertprice.co.uk\/robblog\/rc2024-part-8-refining-the-rotary-encoder-z80-assembly-language-program\/#primaryimage"},"thumbnailUrl":"https:\/\/www.robertprice.co.uk\/robblog\/assets\/RC2014-rotaryencoder-digitalio.jpg","datePublished":"2024-10-12T11:27:01+00:00","author":{"@id":"https:\/\/www.robertprice.co.uk\/robblog\/#\/schema\/person\/fac6d5b076e0e14e1fb13e15b542a6c5"},"description":"A small update to the RC2014 Z80 Assembly Language program that reads from the Rotary Encoder Module and displays on the Digital I\/O module.","breadcrumb":{"@id":"https:\/\/www.robertprice.co.uk\/robblog\/rc2024-part-8-refining-the-rotary-encoder-z80-assembly-language-program\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.robertprice.co.uk\/robblog\/rc2024-part-8-refining-the-rotary-encoder-z80-assembly-language-program\/"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.robertprice.co.uk\/robblog\/rc2024-part-8-refining-the-rotary-encoder-z80-assembly-language-program\/#primaryimage","url":"https:\/\/www.robertprice.co.uk\/robblog\/assets\/RC2014-rotaryencoder-digitalio.jpg","contentUrl":"https:\/\/www.robertprice.co.uk\/robblog\/assets\/RC2014-rotaryencoder-digitalio.jpg","width":1200,"height":788,"caption":"RC2014 with Rotary Encoder and Digital IO modules"},{"@type":"BreadcrumbList","@id":"https:\/\/www.robertprice.co.uk\/robblog\/rc2024-part-8-refining-the-rotary-encoder-z80-assembly-language-program\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.robertprice.co.uk\/robblog\/"},{"@type":"ListItem","position":2,"name":"RC2024 \u2013 Part 8 \u2013 Refining The Rotary Encoder Z80 Assembly Language Program"}]},{"@type":"WebSite","@id":"https:\/\/www.robertprice.co.uk\/robblog\/#website","url":"https:\/\/www.robertprice.co.uk\/robblog\/","name":"Robert Price","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.robertprice.co.uk\/robblog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Person","@id":"https:\/\/www.robertprice.co.uk\/robblog\/#\/schema\/person\/fac6d5b076e0e14e1fb13e15b542a6c5","name":"rob","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/secure.gravatar.com\/avatar\/6f0eb511179100a4e968abc70403e33686e6ab3e992e392bedd2ccac01da666c?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/6f0eb511179100a4e968abc70403e33686e6ab3e992e392bedd2ccac01da666c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6f0eb511179100a4e968abc70403e33686e6ab3e992e392bedd2ccac01da666c?s=96&d=mm&r=g","caption":"rob"}}]}},"_links":{"self":[{"href":"https:\/\/www.robertprice.co.uk\/robblog\/wp-json\/wp\/v2\/posts\/2859","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.robertprice.co.uk\/robblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.robertprice.co.uk\/robblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.robertprice.co.uk\/robblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.robertprice.co.uk\/robblog\/wp-json\/wp\/v2\/comments?post=2859"}],"version-history":[{"count":4,"href":"https:\/\/www.robertprice.co.uk\/robblog\/wp-json\/wp\/v2\/posts\/2859\/revisions"}],"predecessor-version":[{"id":2867,"href":"https:\/\/www.robertprice.co.uk\/robblog\/wp-json\/wp\/v2\/posts\/2859\/revisions\/2867"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.robertprice.co.uk\/robblog\/wp-json\/wp\/v2\/media\/2855"}],"wp:attachment":[{"href":"https:\/\/www.robertprice.co.uk\/robblog\/wp-json\/wp\/v2\/media?parent=2859"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.robertprice.co.uk\/robblog\/wp-json\/wp\/v2\/categories?post=2859"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.robertprice.co.uk\/robblog\/wp-json\/wp\/v2\/tags?post=2859"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}