汇编数组的绝对值

时间:2017-06-27 15:08:02

标签: arrays assembly x86 irvine32 absolute-value

我正在尝试编写汇编程序,它在寄存器ebx中接收一个参数,并在寄存器eax中返回参数的绝对值,然后在循环中调用该过程以访问给定数组的每个元素并获得它们的绝对值值。当我运行代码时,我从汇编程序收到以下段错误。

<ListView
    dataSource={ds.cloneWithRows(props.autocompleteResults.predictions)}
    renderRow={place => renderAutocompleteItem(props, place)}
    style={{ 
      display: getDisplay(shouldHideResults)
    }} 
    keyboardShouldPersistTaps={true}/>
from matplotlib import pylab as plt
from nltk import *
import numpy as np

# you may use a tokenizer like nltk.tokenize.word_tokenize()
dist = {}
dist["win"] = FreqDist(tokenizer("first text"))
dist["draw"] =  FreqDist(tokenizer("second text"))
dist["lose"] =  FreqDist(tokenizer("third text"))
dist["mixed"] = FreqDist(tokenizer("fourth text"))

# sorted list of 50 most common terms in one of the texts
# (too many terms would be illegible in the graph)
most_common = [item for item, _ in dist["mixed"].most_common(50)] 

colors = ["green", "blue", "red", "turquoise"]

# loop over the dictionary keys to plot each distribution
for i, label in enumerate(dist):
    frequency = [dist[label][term] for term in most_common]
    color = colors[i]
    plt.plot(frequency, color=color, label=label)
plt.gca().grid(True)
plt.xticks(np.arange(0, len(most_common), 1), most_common, rotation=90)
plt.xlabel("Most common terms")
plt.ylabel("Frequency")
plt.legend(loc="upper right")
plt.show()

1 个答案:

答案 0 :(得分:4)

我需要在<a>部分下移动ABS程序:

.CODE