mirror of
https://github.com/pfusik/xasm.git
synced 2024-12-21 09:29:39 +00:00
std.conv is already imported.
This commit is contained in:
parent
2e43507088
commit
90276dbe86
12
xasm.d
12
xasm.d
@ -1,6 +1,6 @@
|
||||
// xasm 3.1.0 by Piotr Fusik <fox@scene.pl>
|
||||
// http://xasm.atari.org
|
||||
// Can be compiled with DMD v2.073.
|
||||
// Can be compiled with DMD v2.087.1.
|
||||
|
||||
// Poetic License:
|
||||
//
|
||||
@ -2652,12 +2652,12 @@ debug ubyte[] testInstruction(string l) {
|
||||
}
|
||||
|
||||
unittest {
|
||||
assert(testInstruction("nop") == cast(ubyte[]) std.conv.hexString!"ea");
|
||||
assert(testInstruction("add (5,0)") == cast(ubyte[]) std.conv.hexString!"18a2006105");
|
||||
assert(testInstruction("mwa #$abcd $1234") == cast(ubyte[]) std.conv.hexString!"a9cd8d3412a9ab8d3512");
|
||||
assert(testInstruction("dta 5,d'Foo'*,a($4589)") == cast(ubyte[]) std.conv.hexString!"05a6efef8945");
|
||||
assert(testInstruction("nop") == cast(ubyte[]) hexString!"ea");
|
||||
assert(testInstruction("add (5,0)") == cast(ubyte[]) hexString!"18a2006105");
|
||||
assert(testInstruction("mwa #$abcd $1234") == cast(ubyte[]) hexString!"a9cd8d3412a9ab8d3512");
|
||||
assert(testInstruction("dta 5,d'Foo'*,a($4589)") == cast(ubyte[]) hexString!"05a6efef8945");
|
||||
assert(testInstruction("dta r(1,12,123,1234567890,12345678900000,.5,.03,000.1664534589,1e97)")
|
||||
== cast(ubyte[]) std.conv.hexString!"400100000000 401200000000 410123000000 441234567890 461234567890 3f5000000000 3f0300000000 3f1664534589 701000000000");
|
||||
== cast(ubyte[]) hexString!"400100000000 401200000000 410123000000 441234567890 461234567890 3f5000000000 3f0300000000 3f1664534589 701000000000");
|
||||
}
|
||||
|
||||
void assemblyPair() {
|
||||
|
Loading…
Reference in New Issue
Block a user