汇编语言编程 - 带虚拟键盘的步进电机 [英] Assembly language programming - stepper motor with virtual keyboard

查看:58
本文介绍了汇编语言编程 - 带虚拟键盘的步进电机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要制作一个可以用虚拟键盘控制步进电机的程序。我必须使用微处理器模拟器 - 版本5.0(GNU)(http://www.softwareforeducation.com/sms32v50/index.php)。我已经包含了 脚本 [ ^ 我得到它与数字1-6工作,但当我尝试添加新数字时,我得到这个错误:跳转不能超过-128..127 START。我希望它上升到1-9和零。是否可以拆分脚本或者我达到了可以接受的最大值?



我尝试了什么:



我不知道是否有可能添加更多内容但可能会以某种方式拆分脚本..

I need to make a program that I can control the stepper motor with virtual keyboard. I have to use "Microprocessor Simulator - Version 5.0 (GNU) (http://www.softwareforeducation.com/sms32v50/index.php). I have included a script[^]. I got it working with numbers 1-6 but when I try to add new numbers I get this error: Jump can not exceed -128..127 START. I'd like it to go up to 1-9 and zero. Is it possible to split the script or have I reached max that it can take in?

What I have tried:

I don't know if it's even possible to add more to it but maybe splitting the script somehow..

推荐答案

您需要使用长跳转(如果汇编程序中存在跳转)或重新编写代码以使用子程序调用并确保所有跳转都在所提到的限制范围内。
You need to use a long jump (if that exists in your assembler) or rework your code to use subroutine calls and ensure that all your jumps are within the limits mentioned.


这篇关于汇编语言编程 - 带虚拟键盘的步进电机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆