{"id":22860086,"url":"https://github.com/suborb/xmodem_test_code-","last_synced_at":"2025-03-31T08:23:02.917Z","repository":{"id":169869182,"uuid":"645949987","full_name":"suborb/XMODEM_Test_code-","owner":"suborb","description":"Just testing XMODEM code for CP/M on the Z180","archived":false,"fork":false,"pushed_at":"2023-05-26T21:01:25.000Z","size":31,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-02-06T12:48:10.555Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"ntate6630/XMODEM_Test_code-","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/suborb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-26T20:48:41.000Z","updated_at":"2023-12-29T13:33:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"7410b76c-f290-4a96-9926-4276f477fad4","html_url":"https://github.com/suborb/XMODEM_Test_code-","commit_stats":null,"previous_names":["suborb/xmodem_test_code-"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suborb%2FXMODEM_Test_code-","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suborb%2FXMODEM_Test_code-/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suborb%2FXMODEM_Test_code-/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suborb%2FXMODEM_Test_code-/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/suborb","download_url":"https://codeload.github.com/suborb/XMODEM_Test_code-/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246437054,"owners_count":20777143,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-13T09:08:59.308Z","updated_at":"2025-03-31T08:23:02.912Z","avatar_url":"https://github.com/suborb.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# XMODEM_Test_code\n\n### XMODEM code for CP/M on the Z180. This code is work in progress and has bugs. \n\n### Only looking at the code starting at line 325 where XMODEM reception starts...\n\n#### Using \"terminal 1\" for main communication with \"UART0\" to issue CP/M commands and do XMODEM data transfer, and \"terminal 2\" to only receive debug data from \"UART1\" sent by instructions placed in the code to observe various parameters.\n\n#### After setting the code to receive XMODEM data and \"terminal 1 to send a text file using XMODEM the SC126 sends the 'C' character and \"terminal 1\" sends the SOH. \n#### This is confirmed by debug code sending the received \"SOH\" byte to \"terminal 2\"\n\n#### The code up until line 424 works correctly\n#### After this where the inline assembler code starts to receiv the packet data it fails.\n#### The assembler code points (HL) registers at memory 0x9001 for storing packet data. The B register is set so that it will read in 134 bytes of packet data.\n#### The code checks the UART0 status register to see if the RX buffer is empty and reads in a byte from the UART data register when ready.\n#### The code checks for an over-run error by reading \"ASCI Control register EFR bit 3\" and jumps to \"error:\" and executes a HALT instruction if over-run occurs. \n#### (I have an LED connected to my CPU HALT line).\n\n#### The code never makes it past receiving the first byte of data and always jumps to the over-run \"error:\" condition.\n\n#### I can not explain why this is not working because the assembler code should be more than fast enough to keep up with reception at 115200 baud and I previusly made an Arduino project in 'C' and it works perfectly without issues. \n\n#### If anyone is reading this and wants to try this on their SC126 CP/M setup please feel free to do so.\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuborb%2Fxmodem_test_code-","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsuborb%2Fxmodem_test_code-","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuborb%2Fxmodem_test_code-/lists"}