我对Z80和机器码很新,所以请不要认为我知道任何事情.
基本上,我想知道的是:如果你H用一个值加载寄存器(我会称之为y),HL那么0xy0呢?例如,如果H装有0xAF会HL是0xAF00?加载L时也一样y吗?
提前致谢.
我试过这个,但没有用.
我正在制作计算器程序.到目前为止我已经做到了这一点:
from tkinter import *
window = Tk()
disp = Entry(window, state='readonly', readonlybackground="white")
disp.grid(column=0, row=0, columnspan=4)
#row 1
seven = Button(window, text="7", command=Seven)
seven.grid(column=1,row=1)
eight = Button(window, text="8", command=Eight)
eight.grid(column=2,row=1)
nine = Button(window, text="9", command=Nine)
nine.grid(column=3,row=1)
divide = Button(window, text="÷", command=Divide)
divide.grid(column=4,row=1)
#row 2
four = Button(window, text="4", command=Four)
four.grid(column=1,row=2)
five = Button(window, text="5", command=Five)
five.grid(column=2,row=2)
six = Button(window, text="6", command=Six)
six.grid(column=3,row=2)
multiply = Button(window, text="×", command=Multiply)
multiply.grid(column=4,row=2)
#row 3
one = Button(window, text="1", command=One)
one.grid(column=1,row=3)
two …Run Code Online (Sandbox Code Playgroud) 因此,我无法使用 js 删除 HTML 表中的所有数据而不删除标题。这是我的 HTML:
<html>
<title>Z80 Opcodes</title>
<body>
<input type="text" id = "input" value = "">
<button onClick = "hex()">Hex</button>
<button onClick = "bin()">Bin</button>
<button onClick = "assem()">Assembly</button>
<button onClick = "find()">Find</button>
<table id = "out" style="width:100%">
<thead>
<th align="left">Binary</th>
<th align="left">Hex</th>
<th align="left">Assembly</th>
<th align="left">Description</th>
</thead>
<tbody id="tb">
</tbody>
<script src = "js/script.js">
</script>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)
这是script.js:
var id = document.getElementById("out");
var ab = "";
var row;
var table = ['0000000000nopno operation', '0000000101ld (bc), **loads ** into …Run Code Online (Sandbox Code Playgroud) 我正在尝试制作一个程序(只是为了好玩),需要这样的东西:
#define TEST "HELLO
#define TEST2 WORLD\n"
...
printf(TEST TEST2);
...
Run Code Online (Sandbox Code Playgroud)
我希望输出是
HELLO WORLD
但是该代码不起作用。
有没有办法在 C 中包含像这样的换行符和双引号?
button ×1
c ×1
gcc ×1
html ×1
html-table ×1
javascript ×1
machine-code ×1
python ×1
tkinter ×1
z80 ×1