📄 apcsnot.html
字号:
<!doctype html public "-//W3C//DTD HTML 3.2//EN"><html><head><title>Writing a non-APCS program with the DDE</title><meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><meta http-equiv="content-language" content="en" /><meta name="resource-type" content="document"><meta name="copyright" content="This document copyright 2001 by Richard Murray. Use for non-profit and education purposes explicitly granted."><meta name="author" content="Richard Murray"><meta name="rating" content="general"></head><!-- /assembler/apcsnot.html --><!-- --><!-- (C) Copyright 2001 Richard Murray --><!-- Designed by Richard Murray --><!-- rmurray@heyrick.co.uk --><!-- --><body bgcolor="#f0f0f0" text="#000000" link="#0022dd" vlink="#002288"><table border = "0" width="100%"> <tr> <td align=center width=100> <img src="arm3.gif" width=79 height=78 align = middle> </td> <td> <h1 align="center"><font color="#800080">Writing a non-APCS program <br>with the DDE</font></h1> </td> <td align=center width=100> <img src="arm3.gif" width=79 height=78 align = middle> </td></table><p> <p>If you are writing a pure assembler program, then you do not <i>have</i> to follow APCS for<i>objasm</i> to assemble it.<pre> AREA |my$$code|, CODE, READONLY ENTRYR0 RN 0R14 RN 14PC RN 15 MOV R0, #255loop SWI 1 ; OS_WriteS DCB "Alyson! ", 0 SUBS R0, R0, #1 BNE loop MOV PC, R14 END</pre>That is a really tiny program. <i>objasm</i> will compile it, and if you tell link to output aBinary file (basically an 'app' without the AIF header), then you'll have a program 32 byteslong:<pre> ÿ[00] ã[01][00][00]ïAlyson! [00][00][00][00][01][00]Pâùÿÿ[1a][0e]ð á</pre><hr size = "3"><a href="index.html#08">Return to assembler index</a><hr size = "3"><address>Copyright © 2001 Richard Murray</address></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -