24 lines
860 B
Go
24 lines
860 B
Go
// Copyright (c) 2026 Petr Balvín <opensource@petrbalvin.org> (https://petrbalvin.org)
|
|||
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
||
|
|
|
||
|
|
package asm
|
||
|
|
|
||
|
|
import (
|
||
|
|
"fmt"
|
||
|
|
|
||
|
|
"sourcedock.dev/petrbalvin/gasm-devkit/ast"
|
||
|
|
)
|
||
|
|
|
||
|
|
// assembleARM64 is a stub. The arm64 (AArch64) instruction encoder is not yet
|
||
|
|
// implemented — the instruction tables, register files and operand-count
|
||
|
|
// metadata are in place (package arch), and the lexer, parser, formatter and
|
||
|
|
// linter already handle arm64 source files.
|
||
|
|
func assembleARM64(t *ast.Text) ([]byte, map[string]int, []Reloc, error) {
|
||
|
|
return nil, nil, nil, fmt.Errorf("arm64 instruction encoding is not yet implemented")
|
||
|
|
}
|
||
|
|
|
||
|
|
// AssembleFileARM64 is a stub, returning the same error as assembleARM64.
|
||
|
|
func AssembleFileARM64(f *ast.File) (*Image, error) {
|
||
|
|
return nil, fmt.Errorf("arm64 instruction encoding is not yet implemented")
|
||
|
|
}
|