求以下汇编语言问题的解答,问题描述如图所示,要求使用8086/8088版本
1.错误。
汇编中PUSH指令 为入栈操作指令 可以将寄存器、段寄存器、存储器的内容送入堆栈保存
只有3种格式:
PUSH reg
PUSH sreg
PUSH mem
操作数只能是 寄存器 reg、段寄存器 sreg、存储器mem。
不能是立即数 因此 push 2360H 对于8086CPU 操作码后面的数字代表的是立即数 是非法指令
2.错误。
SBB指令格式: sbb 对象1,对象2
3.错误
DEC指令只有1个操作数,执行时,将操作数的值减1
4.错误
ADC带进位的加法指令,格式为 ADC Reg/Mem, Reg/Mem/Imm
BL是跳转指令,不符合ADC指令格式
5.错误
立即数不能直接给段寄存器,段寄存器不能给段寄存器。
diyAudioPlayer.wxml
代码有20余行。大致如下:<view class="my-audio">
<view class="audio-box">
<!-- 播放/暂停的图标 start -->
<image class="audio__status" src="{{(isPlay ? pauseSrc : playSrc)}}" mode="widthFix" bindtap="{{isPlay ? 'goPause' : 'goPlay'}}"></image>
<!-- 播放/暂停的图标 end -->
<view class="audio__content">
<view class="audio__progress">
<movable-area class="audio__progress">
<movable-view class="audio__progress_bar {{isCanplay ? '' : 'audio__progress_loading'}}" x="{{x}}" direction="horizontal" bindchange="bindchange" bindtouchmove="touchMove" bindtouchend="touchEnd" bindtouchstart="touchStart" animation="{{false}}" >{{progress}}/{{total}}
<!-- 按住拖拽时的tips start -->
<view class="audio__progress_tips" wx:if="{{isTouchMove}}">{{progress}}/{{total}}</view>
<!-- 按住拖拽时的tips end -->
</movable-view>
</movable-area>
<!-- 已经播放的进度 start -->
<view class="audio__progress_current" wx:if="{{isProgress}}" style="width:{{x}}px"></view>
<!-- 已经播放的进度 end -->
</view>
</view>
</view>
</view>
完整的js
代码有2百多行,已上传到github
,此处就不粘贴了。最终效果如图:可控制播放进度的音乐播放器.png
点我观看最终效果