小编MCs*_*uch的帖子

mips 组件的字符串长度

每当我运行以下代码时:

#counts length of a string

.data
 .data
string: .asciiz "Hello"

printedMessage: .asciiz "The length of the string: "

    .text
main:
  la $a0, string             # Load address of string.
        jal strlen              # Call strlen procedure.
        jal print
        addi $a1, $a0, 0        # Move address of string to $a1
        addi $v1, $v0, 0        # Move length of string to $v1
        addi $v0, $0, 11        # System call code for message.
        la $a0, printedMessage            # Address of message.
        syscall
        addi $v0, $0, …
Run Code Online (Sandbox Code Playgroud)

assembly strlen qtspim

4
推荐指数
1
解决办法
4万
查看次数

Go with Sublime 3 返回“go run:没有列出 go 文件”

我在 gotour 的第一页上有以下代码:

\n\n
package main\n\nimport "fmt"\n\nfunc main() {\n    fmt.Println("Hello, \xe4\xb8\x96\xe7\x95\x8c")\n}\n
Run Code Online (Sandbox Code Playgroud)\n\n

我将文件保存在 Sublime 3 中,名称为 goTour,类型为 go。当我构建时,我得到:

\n\n
go run: no go files listed\n[Finished in 0.3s with exit code 1]\n[cmd: go run C:\\Users\\new customer\\Desktop\\goTour]\n[dir: C:\\Users\\new customer\\Desktop]\n[path: C:\\Windows\\System32\\;"C:\\Program Files\\Java\\jdk1.7.0_25"\\bin;C:\\devtools\\apache-maven-3.0.5\\bin;C:\\Program Files\\TortoiseHg;C:\\Python34;C:\\Go\\bin]\n
Run Code Online (Sandbox Code Playgroud)\n\n

有其他人遇到过这个问题或知道如何解决它吗?我已经安装了 go 和 gosublime。

\n

go sublimetext3

3
推荐指数
1
解决办法
1万
查看次数

标签 统计

assembly ×1

go ×1

qtspim ×1

strlen ×1

sublimetext3 ×1