Copyright | (c) roki 2019 |
---|---|
License | MIT |
Maintainer | falgon53@yahoo.co.jp |
Stability | experimental |
Portability | POSIX |
Safe Haskell | None |
Language | Haskell2010 |
The modules of intrinsic (x86_64) assembly
Synopsis
- data TextSectionCtx
- data TextLabelCtx
- data TargetLabelCtx
- text :: Asm TextSectionCtx e a -> Asm AsmCodeCtx e a
- global :: Text -> Asm TextSectionCtx e ()
- fn :: Text -> Asm TextLabelCtx e a -> Asm TextSectionCtx e a
- label :: (Show i, Show e) => Text -> i -> Asm TextLabelCtx e ()
- begin :: (Show e, Show i) => i -> Asm TextLabelCtx e ()
- end :: (Show e, Show i) => i -> Asm TextLabelCtx e ()
- eLse :: (Show e, Show i) => i -> Asm TextLabelCtx e ()
- cAse :: (Show e, Show i) => i -> Asm TextLabelCtx e ()
- break :: (Show e, Show i) => i -> Asm TextLabelCtx e ()
- continue :: (Show e, Show i) => i -> Asm TextLabelCtx e ()
- gotoLabel :: Text -> Asm TextLabelCtx e ()
- ref :: (Show e, Show i) => Text -> i -> Asm TargetLabelCtx e ()
- refBegin :: (Show e, Show i) => i -> Asm TargetLabelCtx e ()
- refEnd :: (Show e, Show i) => i -> Asm TargetLabelCtx e ()
- refElse :: (Show e, Show i) => i -> Asm TargetLabelCtx e ()
- refBreak :: (Show e, Show i) => i -> Asm TargetLabelCtx e ()
- refHBreak :: Show e => Asm TargetLabelCtx e ()
- refContinue :: (Show e, Show i) => i -> Asm TargetLabelCtx e ()
- refHContinue :: Show e => Asm TargetLabelCtx e ()
- refReturn :: Show e => Asm TargetLabelCtx e ()
- refGoto :: Text -> Asm TargetLabelCtx e ()
- makeCases :: (Show e, Enum e, Integral e, Show i, Num i) => [ATree i] -> Asm TextLabelCtx e [ATree i]
Context type
data TextSectionCtx Source #
the type representing the context inside the text section
data TextLabelCtx Source #
the type representing the context inside the label
data TargetLabelCtx Source #
the type representing the context inside the instruction that needs to be specified,
such as a jmp
instruction.
Directives
text :: Asm TextSectionCtx e a -> Asm AsmCodeCtx e a Source #
text
section
Labels
fn :: Text -> Asm TextLabelCtx e a -> Asm TextSectionCtx e a Source #
the label as function definition in text section
refHBreak :: Show e => Asm TargetLabelCtx e () Source #
reference for break label (applying value by brkCnt
)
refContinue :: (Show e, Show i) => i -> Asm TargetLabelCtx e () Source #
reference for continue label
refHContinue :: Show e => Asm TargetLabelCtx e () Source #
reference for break label (applying value by cntCnt
)